Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Truncating a Dat File
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Truncating a Dat File
Miscellaneous
Thread ID:
00813467
Message ID:
00813467
Views:
33
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
This is my signature there are many like it but this one's mine.
Next
Reply
Map
View

Click here to load this message in the networking platform