Results 1 to 10 of 10

Thread: TXT File open, modify, save as new (RESOLVED)

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Robbo's Avatar
    Join Date
    Jan 2001
    Location
    Bradford
    Posts
    1,143

    Resolved TXT File open, modify, save as new (RESOLVED)

    got this to start off

    Code:
    Private Sub mnuConvert_Click()
    
    Call mnuCloseLog_Click 'Close Log file first
    
    Open Temp For Input As #1 'Open log file
    
        Open NewLogFile For Append As #2
    
        Close #2
    
    Close #1
    
    End Sub
    want to open a log file, stored in (Temp) delete the  then save to another file (NewLogFile), whats the best way to do this, please use code i already have and decare any variables

    thanks in advance
    Last edited by Robbo; Dec 14th, 2004 at 11:21 AM.
    -----------------------------------------------
    "The hall is rented,"
    "the orchestra is engaged,"
    "its now time to see if you can dance!"
    Q, Q-Who, Star Trek The Next Generation
    -----------------------------------------------
    General Work day

    -----------------------------------------------
    DOS, Win 95, Win 98 SE, Win ME, Win NT 4.0 SP6a, Windows 2000 SP3, Window XP SP1, Windows 7, Windows 8/8.1, Windows 10, Office 97 Pro, Office 2000 Pro, Office 2010, Office 2013, Office 2016, Office 2019, Visual Basic 6 (SP5), SQL, Oracle

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