Aug 3, 2011 at 2:11am
I have file.txt with content:
1 2 3 4
2 4 5 9
and then, i want add some information into file.txt
abc
89
1 2 3 4
2 4 5 9
=> Please show me write that file
Thanks alot
Aug 3, 2011 at 2:16am
I think, i read file into array. And then wirte array to file. But it's bad idea. I want write direct into head file! :-)
Aug 3, 2011 at 2:26am
You can't write directly to a file. You have to read in the data, then write back to the file.
Aug 3, 2011 at 2:45am
Oh, really? Thanks alot! :-)