Capuchin
Mar 27, 2007, 03:06 AM
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?
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?