|
-
Mar 10th, 2008, 05:49 AM
#1
Thread Starter
Junior Member
Insert in file
Hello all,
How can i insert some lines at some specific position in a file in vb?
i.e i have a file which has some comments and other data. Every time user will enter a comment it will be appended at the end of comment section of the file.All the data should go down by those number or lines
eg. My file is like
*comment1
*comment2
*comment3
data1
data2
data3
Now if i add a comment comment 4 then it should be modified as follows :
*comment1
*comment2
*comment3
*comment4
data1
data2
data3
I can do this with the use of two temporary files. But the file is damn large and this thing is damn tedious.
Can ne one help me out with some other way of doing this?
Thanks & Regards.
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
|