Click to See Complete Forum and Search --> : Writting data to a text file


Ali Habib
April 12th, 2001, 07:54 AM
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.

Iouri
April 12th, 2001, 08:11 AM
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
iouri@hotsheet.com