Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Truncating a Dat File
Message
De
25/07/2003 09:33:37
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00813467
Message ID:
00813469
Vues:
8
>Hi all
>I am wanting to be able to clear out a dat file.
>
>This is the code I have so far, but it ain't working =|
>Since I did not a know way to just clear the contents I am trying to get the file to just truncate to 0
>But if you have a better way Please tell me =)
>
>
>gcCsvName = getfile('DAT', 'Clear Dat:')
>
>if empty(gcCsvName)
>	return 0
>else
>    gnCsvFile  = fopen(gcCsvName)
>    fchsize(gnCsvFile, 1)
>    fclose(gnCsvFile)
>endif
>
FCREATE will auto erase the file and make it size zero.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform