Question
Need Help finding a char from a flat file
My CFSCRIPT need to find a character from a flat file.
The flat file look something like this:
20;193236;1;KUMAR;RETESTDEFECT215;;STRETE;;;SPRINGFIED;MA;01111;;;Contract_20080715-2_10093_88
20;193236;1;DIANE;SMITH;;STRETE;;;SPRINGFIED;MA;01111;;;Contract_20080715-2_10093_88
20;193236;1;ROBERT;REYES15;;STRETE;;;SPRINGFIED;MA;01111;;;Contract_20080715-2_10093_88
etc...
I need to determine whether number "20" in the file exist. How can I do this? can anyone help?
<cfscript>
IsRecordExist=Search("fileContent", 20) ?????
</cfscript>
<cfoutput>
#IsRecordexist#
</cfoutput>
The flat file look something like this:
20;193236;1;KUMAR;RETESTDEFECT215;;STRETE;;;SPRINGFIED;MA;01111;;;Contract_20080715-2_10093_88
20;193236;1;DIANE;SMITH;;STRETE;;;SPRINGFIED;MA;01111;;;Contract_20080715-2_10093_88
20;193236;1;ROBERT;REYES15;;STRETE;;;SPRINGFIED;MA;01111;;;Contract_20080715-2_10093_88
etc...
I need to determine whether number "20" in the file exist. How can I do this? can anyone help?
<cfscript>
IsRecordExist=Search("fileContent", 20) ?????
</cfscript>
<cfoutput>
#IsRecordexist#
</cfoutput>
