Results 1 to 4 of 4

Thread: String help

  1. #1

    Thread Starter
    Addicted Member Osiris's Avatar
    Join Date
    Oct 2000
    Location
    Dimension Hole
    Posts
    142

    Unhappy

    any1 know how i could get the text of an unopened text file into a string?
    for example, i have a bunch of text files in my C: drive and i want to make my program read what these text files have in them, how would i go about doing that?

  2. #2
    Guest
    In order to read the file, you must open it.

  3. #3
    Guest
    To read a text file into a string, but as Megatron said, you must open it first.

    Code:
    Dim MyString As String
    Open "C:\MyTextFile.txt" For Input As #1
    MyString = Input(LOF(1), 1)
    Close #1
    Hope that helps.

  4. #4

    Thread Starter
    Addicted Member Osiris's Avatar
    Join Date
    Oct 2000
    Location
    Dimension Hole
    Posts
    142

    Talking

    Thanx you guys, you are so good to me!!

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