English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to add a new content in begining of a file. How can i do it.
My idea is reading all the data from a file to a variable and write the new content in to a file and then write the old content from a variable.

2006-07-26 07:42:02 · 2 answers · asked by gsatish117 1 in Computers & Internet Programming & Design

2 answers

I would write the new part to a temp file, then add the old part to it. Then read from the temp and write it all at once into the file.

2006-07-26 07:54:08 · answer #1 · answered by Brady 3 · 0 0

Look into the FileSystemObject

2006-07-26 09:12:36 · answer #2 · answered by Kryzchek 4 · 0 0

fedest.com, questions and answers