The FREAD can read up to 64KB at once.
lnFH1 = FOPEN("file1.txt", 12)
lcFileText = ""
DO WHILE NOT FEOF(lnFH1)
lcFileText = lcFileText + FREAD(lnFH1, 2^16-1)
ENDDO
= FCLOSE(lnFH1)
? lcStr $ lcFileText
>
>I want to search a string in a file. I FREAD() the file into a memory variable and then "string"$var. A file that is 600598 bytes cannot be searched, I guess this is way under the STD and EXT version limit of FPD of string lengths.
>
>How to go about this problem?
--sb--