Link to home
Start Free TrialLog in
Avatar of xeondxb
xeondxbFlag for United Arab Emirates

asked on

Cold Fusion String Search In Text File and insert in to database!

hi,

im trying to search in text file from CFM  and insert in to database for example

1st Text File:

True

OR

False

---------------------------------------------------------------------------------

2nd  Text File :

"A blog (a blend of the term web log)[1] is a type of website or part of a website supposed to be updated with new content from time to time. Blogs are usually maintained by an individual with regular entries of commentary, descriptions of events, or other material such as graphics or video. Entries are commonly displayed in reverse-chronological order. Blog can also be used as a verb, meaning to maintain or add content to a blog.
Although not a must, but most good quality blogs are interactive, allowing visitors to leave comments and even message each other via widgets on the blogs and it is this interactivity that distinguishes them from other static websites."


Two Thing i have to do.

: 1
I'll check in 1st file "True" or "False"  then  i'll insert in to database with date and time.

: 2
i'll start reading text file from start where ever  i'll get word "website" i'll insert in to database with location & total.


Avatar of sandy12879
sandy12879
Flag of India image

I assume you want to search through text file,the way to go would be to make a CFcollection of all the text files.and search it through verity search.
Once you retreive the file through you can have corresponding updates in data base...
Avatar of xeondxb

ASKER

Well i have one file is coming from feed coming from other system like Linux it is updating text file with true and false  status what i have to do grab the status with date and time update my system end of the month i'll generate report how many times it was true and false
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xeondxb

ASKER

well yea same how i needed some think link this anyway it'll help me .....
So what was the actual answer?