>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