Write text in head file ?

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
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! :-)
You can't write directly to a file. You have to read in the data, then write back to the file.
Oh, really? Thanks alot! :-)
Topic archived. No new replies allowed.