|
-
February 8th, 2010, 06:42 AM
#1
Best way to insert new data into files?
I need a bit of advice. I want to insert new data into an existing file but keep the current information that is in the file intact. When I used to do this in Perl I did it very slowly by reading line by line into a large varible until I found where I wanted to put the new info in, then appeneded the info to the varible and finished reading the file to the varible. Well needless to say that took a lot of memory and CPU time. While I have not looked much into it for C# I have to head off to my 9 hour shift of work right now and though I would pose the question to see what you guys think while I do a bit of searching when at work. So what would you recomemnd for the easiest and fastest way to insert information into an existing file?
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
|