If the file is not too big, you can use something like this:
lcFile=yourfile
lcTekst=filetostr(lcFile)
lnLength=len(lcTekst)
strtofile(lcFile,left(lcTekst,lnLength-30))
NB! Not tested. And be sure to make a backup first. :-)
>Hi all
>
>I have this corrupted table. the records and it's length seems to be okay, but the header has somehow got 30 characters more in it, though this longer header is still recognized by FP and still returns the right number of fields, fieldnames and lengths. I have a copy of the original table (empty table).
>
>I have tried to overwrite the header portion but how do I remove the 30 extra bytes? This I have seem happening before, but if just manually removing a few bytes or the header fully and the putting in the right header should give the file back as the records are unharmed.
>
>Please advise.