PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 27 → fFind not working
fFind not working
Débuté par ClaudeHullq, 09 sep. 2022 22:31 - Aucune réponse
Membre enregistré
10 messages
Posté le 09 septembre 2022 - 22:31
the fFind function claims to locate a string within a file opened by fOpen.
I have a simple text file with CR terminated lines and containing a substring 'Chapter 1".
Using the fileID returned from fOpen(Path+"FILE.TXT",foAnsi),
I encounter an error with: fFind(fileID,"Chapter 1")
Why?
I've tried adding a fSeek(fileID,0,fpBeginning) before the fFind, still errors.
I can sTx = fRead(fileID,1000) and receive the expected text in the string variable.

How does this function work?