|
-
April 12th, 2001, 07:54 AM
#1
Writting data to a text file
I need to write data to a ASCII text file (new or existing file), but the problem is that I need to specify the column number and the line number from where to start writting data. Can anyone tell me how can I do this in VB.
How can I give the required extension to a ASCII text file after writting data to it.
Thankyou
Regards
Ali.
-
April 12th, 2001, 08:11 AM
#2
Re: Writting data to a text file
You cannot write in the middle of the text file. You can either starta new file or append to existing. If you want insert into existing file, you have to read this file and write to the different file up to desired line, then append to a new file a desired line and then continiue to read an old file and append to the new. After you have finished, delete the old file and rename the new with any extension you want.
If you need help to how to read from file and write to file, let me know.
Iouri Boutchkine
[email protected]
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
|