A aliangzl Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-24 #1 我进行文件操作,我只会用RESETAPPEND读和写!但怎么才能把刚才写在TXT一的内容删了啊? 谢谢!
A Another_eYes Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-24 #3 删除文件最后30字节: var f: Integer; begin f := fileopen('a.txt', fmOpenWrite or fmDenyNone); FileSeek(f, 30, 2); SetEndofFile(f); fileclose(f); end;
删除文件最后30字节: var f: Integer; begin f := fileopen('a.txt', fmOpenWrite or fmDenyNone); FileSeek(f, 30, 2); SetEndofFile(f); fileclose(f); end;
B Bahl Unregistered / Unconfirmed GUEST, unregistred user! 2002-11-24 #5 assignfile(filehandle,filename) rewrite(filehandle)