Results 1 to 2 of 2

Thread: creating and writing to files

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2000
    Location
    Dorado, Puerto Rico
    Posts
    36

    Thumbs up

    Hello;

    Are you sure is ANSI and not ASCII?


  2. #2
    Lively Member Ianf's Avatar
    Join Date
    Mar 2000
    Location
    Leigh, Lancashire, UK
    Posts
    96

    Post

    Writing to a file is really easy the following code will do it for you. If I have mis-read your question then let me know.

    Code:
    Dim WriteFile As String
    Dim WriteFileNumber As Integer
    
    ' WRITE FORMATTED DATA TO FILE
    WriteFile = "C:\Test.txt"
    WriteFileNumber = FreeFile
            
    Open WriteFile For Append Access Write As #WriteFileNumber
    Print #WriteFileNumber, "Hello World the date is:-", Date
    Close #WriteFileNumber
    Hope this helps
    Ian Frawley
    Software Engineer
    E-mail [email protected]

    BEING IN THERAPY
    And yet, having therapy is very much like making love to a beautiful woman. You... get on the couch, string 'em along with some half-lies and evasions, probe some deep dark holes, and then hand over all your money.

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