誰能幫我實現這個小功能? 80分送上,很好得的. :)
題目為:button1.Click創建一個E:\one.txt 文件, 然後往其中按順序加入'a', 'b', 'c'
也就是說: 不管button1 click多少次, one.txt中的內容始終為:
a
b
c
===================================================================
我寫了如下, 不知道錯在哪了,它說:I/O error 32. 哪位高手能給我一個正確的完善的程序, 多謝了!
FileCreate ('E:\one.txt');
AssignFile (f, 'E:\one.txt');
append (f);
writeln(f, 'a');
writeln(f, 'b');
writeln(f, 'c');