Consulting

Results 1 to 3 of 3

Thread: Input 2nd line in text file

  1. #1

    Input 2nd line in text file

    I'm usind this code to create a second line, but how can I delete or overwrite the second line in a text file.

    [vba] Open ObscurePath & ObscureFile2 For Append As #1
    Print #1, sysID; vbTab; lbPassWord
    Close #1
    [/vba]
    Last edited by av8tordude; 12-28-2012 at 11:07 AM.

  2. #2
    VBAX Mentor
    Joined
    Jul 2012
    Posts
    398
    Location
    is the second line the last line ?

  3. #3
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Just overwrite the file without it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •