Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Visual Basic (https://www.askmehelpdesk.com/forumdisplay.php?f=469)
-   -   File handling error. (https://www.askmehelpdesk.com/showthread.php?t=76342)

  • Mar 27, 2007, 03:06 AM
    Capuchin
    File handling error.
    Hey guys.

    I'm having trouble with reading in data from a FITS file that we create.
    When I do a While loop until EOF, incrementing a variable and reading a character each cycle, I get results for our files that are different, this should correspond to the length of the file. However they are differernt for each file (the files are the same length) and the number is far smaller than the length of the file. (I'm getting number from my VBA of about 37000, whereas the files are about 2560000 chars).

    Sounds to me like VBA is detecting end of file before it reaches the end.

    Any ideas what is going on?
  • Apr 13, 2007, 07:14 AM
    rol
    Can you put the code here to see how you are doing it?
  • Apr 13, 2007, 07:16 AM
    Capuchin
    I've solved this problem, now I have bigger and more eleborate problems! Wheee!
  • Apr 13, 2007, 07:17 AM
    rol
    Ha ha good luck ;-)

  • All times are GMT -7. The time now is 09:49 PM.