Results 1 to 2 of 2

Thread: Create text file

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2005
    Location
    Toronto, Canada
    Posts
    357

    Create text file

    I am trying to create a text file using in the harddrive. The problem is that I want to find out the hard drive letter and if if try to do that, it gives me a error message.

    The following is the code.
    VB Code:
    1. FStream = File.Create((App.Path, 1) :\txtdata.text)

    Can somebody help me with the code, or atleast tell me a new code.

  2. #2
    Fanatic Member vbasicgirl's Avatar
    Join Date
    Jan 2004
    Location
    Manchester, UK
    Posts
    1,016

    Re: Create text file

    ((App.Path, 1)

    shouldnt that be File.Create(Right$(App.Path, 1) & ":\" & txtdata.Text & ".txt")

    casey.

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