Results 1 to 2 of 2

Thread: writing to a file

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 1999
    Location
    St. Louis, MO USA
    Posts
    21

    Post

    I need tips on how to write to a file so that the " " do not appear and how to make a date and time write to a file in a format like this:
    1122990100
    instead of
    11/22/99 01:00

    Thanks

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,176

    Post

    Try using Print#, eg.
    Code:
    Open "C:\MyFile.txt" For Ouput As 1
    Print #1, "Some Text Without Quotes"
    Close 1
    As the for Date/Time Format, use the Format Function, eg.

    Print #1, Format(Now, "MMDDYYHHNN")

    ------------------
    Aaron Young
    Analyst Programmer
    aarony@redwingsoftware.com
    adyoung@win.bright.net

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