Open "newtextfile.txt" for OUTPUT as #ff
Print #ff, outputdata
Close #ff
' keep in mind that the input will only read up to the end of the first line, so you may have to loop through this until eof(ff) = true or do while eof(ff) = false
' build an array of inputdata
gotta go for now, hope this helps get you started.
Tuna - It's fat free until you add the Mayo!
Open the source file as read-only and create a second file in write mode. Add the data you want to the start of the second file, then append the contents of the first file to the second file. Delete the first file afterwards, or rename it as a backup file.
TheTuna's method is hard on memory, mine is hard on disk space. Pick the one that works for your application.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.