>>Hi all
>>
>>I need to read and write back to a text file. Is it possible to lock the file during the process (0.002 seconds) using FOPEN()/FWRITE() or FILETOSTR()?
>>
>>Please let me know.
>>
>>Thanks.
>
>Yes with FOPEN() you could open it EXCLUSIVE, check second parameter in HELP.
>But if you lock it with FOPEN you must READ or WRITE in it ONLY with low level function FWRITE, FREAD() etc.
Or Textmerge commands... like this:
h=FCREATE("temp.txt")
_text=h
SET TEXTMERGE on
\<<datetime()>> was a moment ago.
\ no more so.
_text=-1
=FCLOSE(h)
MODIFY COMMAND temp.txt