Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOPEN - buffered vs. not
Message
De
29/09/2021 15:39:19
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
29/09/2021 15:04:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01682383
Message ID:
01682384
Vues:
56
>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]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform