hi all!
i want to write a headerline to an existing textfile. how can i write data in the first line?
i only can append on the end of the textfile... not at the first position.
thanks
Printable View
hi all!
i want to write a headerline to an existing textfile. how can i write data in the first line?
i only can append on the end of the textfile... not at the first position.
thanks
How about:
1/. Place the heading in variable1
2/. Read the textfile into variable2
3/. variable3 = variable1 & variable2
4/. save variable3 as a textfile
(I'm a newbie and that's just my first thought :D )
thanks... yes that's how it could work but that way i have to write the file twice.
what i want to do is to
1. write the file
2. encode the file
3. add the header (not encoded)
the file can be realy large... so i have to modify it. i've used the filestream object and when i debug the program it seems to do what i want... but when i look into the file there's no header