>Is there any way to do a search in a text file for a particulary character? The only way I have been able to do this is to use FSEEK() and FREAD() to read each character. It is extremely slow on large text files.
How many bytes do you read at a time using FREAD()? As Fred & Trey have suggested FILETOSTR() might be your best bet:
cFileContent =
FILETOSTR( "MyFile.Txt" )
iTotalInstances =
OCCURS(
CHR( iMyChar ), cFileContent ) && this is case sentitive.
iPosOfFirstInstance =
AT(
CHR( iMyChar ), cFileContent ))
*- Or if you want to ignore case:
iPosOfFirstInstance =
ATC(
CHR( iMyChar ), cFileContent ))
censored.