Results 1 to 3 of 3

Thread: creating a file

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    india
    Posts
    10

    Lightbulb

    Hello

    can anyone tell me how to create a text file , read only and hidden in vb ?
    please help ..


  2. #2
    Guest
    This will create the file.
    Code:
    Open "MyFile" For Output As #1
    'This line will write text to the file.
    Print #1, "MyText"
    Close #1
    Now to set it as a hidden file, use the SetAttr function.
    Code:
    SetAttr "MyFile", vbHidden Or vbReadOnly

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    india
    Posts
    10
    thanks

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