Results 1 to 4 of 4

Thread: Open Txt File

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2016
    Posts
    56

    Open Txt File

    Hi

    I want to check if file Data already exists then it should delete and then Data file should be created.

    Open App.Path & "\Data.txt" For Output As #1

    Thanks

  2. #2

    Thread Starter
    Member
    Join Date
    Apr 2016
    Posts
    56

    Log File

    Hi

    I have log file . Sometimes text gets written sometime it gets empty. Everytime it should have - "Form Load - Done"

    Private Sub Form_Load()

    Dim myFile0 As Integer
    myFile0 = FreeFile()


    Open App.Path & "\Log.txt" For Output As #myFile0
    Print #myFile0, "Form Load - Done"
    End Sub


    Thanks

  3. #3
    Addicted Member Mongoose_MHS's Avatar
    Join Date
    May 2024
    Posts
    179

    Re: Log File

    No need for duplicte posts.. You basically asked that in your first post.. You could have easily edited it instead of double posting with a different title..
    Monroe High School.. GO HORNETS!

    If I've help you, please add to my reputation level! Each reply has a "STAR" icon followed by: "Rate this post".. click that

  4. #4
    Addicted Member Mongoose_MHS's Avatar
    Join Date
    May 2024
    Posts
    179

    Re: Open Txt File

    Here's a small video sample:
    https://youtu.be/dOhXKIOHfwU
    Monroe High School.. GO HORNETS!

    If I've help you, please add to my reputation level! Each reply has a "STAR" icon followed by: "Rate this post".. click that

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