Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOPEN - buffered vs. not
Message
From
29/09/2021 15:39:19
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
29/09/2021 15:04:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01682383
Message ID:
01682384
Views:
55
>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.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform