Results 1 to 2 of 2

Thread: Input files

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    USA all the way!
    Posts
    82

    Post Input files

    Im a major newbie who is also self taught and has never read a book on vb. I was looking through a game the other day and found this-

    "Open filename for input as #1" :confused

    I would like to incorperate this into my game, but i don't know how. I would go to the help file, but it doesn't work on my piece of c**p computer.

    Help me out.
    Often talked of, never seen,
    Ever coming, never been,
    Daily looked for, never here,
    Still approaching, coming near,
    Thousands for its visit wait,
    But alas for their fate,
    Tho' they expect me to appear,
    They will never find me here.

    What's this about?

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    well all it does is openening a file in Input mode, and giving it a number for the read and write methods.

    Open "text.txt" For Input As #1
    Input #1, String
    Close #1
    will give you the first entry into the variable String for example
    Sanity is a full time job

    Puh das war harter Stoff!

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