CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2000
    Posts
    57

    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.


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    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]
    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
  •  





Click Here to Expand Forum to Full Width

Featured