Results 1 to 3 of 3

Thread: File input

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Location
    Cairns,North Queensland, Australia
    Posts
    21
    Hi I hope someone can help,this is what I have.

    Open "c:\post\temp.dat" For Input as #1
    Input#1,strCell(0),strCell(1),strCell(2) and this goes on.
    Close#1

    My question is can I shorten the Input by somehow doing something like this maybe.
    Input#1,strCell(0,1,2,3, and so on.)

  2. #2
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    I didn't test, but couldn't you do something like this:

    Code:
    Open "c:\post\temp.dat" For Input as #1 
    
       For x=0 to 2
            Input#1,strCell(x)
       Next
    
    Close#1

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Location
    Cairns,North Queensland, Australia
    Posts
    21
    Thanks reeset

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