ho can i write to the begining of a text file without erasing whats there? thanks
I don't know of any other way other than reading the file's contents into a variable, prepending the data you want, and the writing the entire contents to file again.