|
-
May 24th, 2005, 07:31 AM
#1
Thread Starter
Member
append text on top or read last line in text
hi! is it possible to append text on top instead of last line in a textfile?
or would it be possible to just read the last line of text without reading all the lines?
thanks
-
May 24th, 2005, 09:16 AM
#2
Re: append text on top or read last line in text
no text is pretty much top to bottom left to right in terms of reading it in.
If you want to add to the top of a textfile, what you need to do is read the whole file into memory (string variable) and then stick the text on the front of that, and write the entire string back to the file.
-
May 24th, 2005, 03:54 PM
#3
New Member
Re: append text on top or read last line in text
im having trouble writing to a text document multiple times, im sorry for posting about my problem in your thread, but im stressed for time, i would appreciate any help... sorry again
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|