Results 1 to 6 of 6

Thread: Confounding File I/O problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    89

    Confounding File I/O problem

    Code:
        MsgBox (FileLen(strread))
        Open strread For Input As #intFILE
        
    '       Read text file line by line and insert into table.
        Do Until EOF(intFILE)
            Input #intFILE, strord_doc_nbr
    This simple bit of code is bugging the <expletive> out of me.

    FileLen confirms that strread is the correct path to the file, but when I get to the Input #intFile .... it doesn't read the file.

    This same bit of code worked when I was pointing to a local file, bu now it doesn't work ... the only difference is that I'm pointing to a network file ... doesn't make sense ....

    Any ideas???

    Need a solution

  2. #2

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    89
    If it was not the correct filepath then it would not return anything

  4. #4

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    89
    Yes and I can verify the path on the code mouse-over .. the path is correct

  6. #6
    Lively Member
    Join Date
    Nov 2001
    Location
    dev/null
    Posts
    64
    Well, I'm not sure I follow completely, but if your path is right, perhaps you aren't allowed access to that file on that network for some reason?

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