>Hi all,
>
>When using FOPEN, there are the options for read only or buffered/unbuffered.
>
>If I am just reading a static file on disk, that is not open by anyone else, should I used buffered or unbuffered. I am asking because the help file does not really say what buffering does so hard to know which to use. Does buffered means the file is loaded into memory? I only need to read the first 1000 bytes of a file before doing something else with the whole file.
>
>Thanks,
>Albert
#1 buffered. but check FFLUSH.
#2 why low level? Is there something FILETOSTR / STRTOFILE can not do? Like file to large? Else those both are much more easy then the low level functions.
#3 I use fopen only to lock a file / check locking, never to read / write.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]