Ask Experts Questions for FREE Help!
Answer   ||    Advanced Search

Ask your question or search...
International Sites: Nederlandse experts vragen
User Name 
Password 
Join   Forgot password? 

Home > Computers & Technology > Programming > Compiled Languages > Visual Basic   »   File handling error.

Question
 
 
#1  
Old Mar 27, 2007, 03:06 AM
Capuchin's Avatar
Capuchin
Science Expert
Capuchin is offline
 
Join Date: Oct 2006
Location: UK
Posts: 5,237
Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.
Send a message via MSN to Capuchin Call Capuchin via Skype™
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?

Reply With Quote
 
     

Answers
 
 
Old Apr 13, 2007, 07:14 AM   #2  
rol
Senior Member
rol is offline
 
rol's Avatar
 
Join Date: Oct 2006
Posts: 879
rol See this member's comment history on his/her Profile page.rol See this member's comment history on his/her Profile page.
can you put the code here to see how you are doing it?
  Reply With Quote
 
     
 
 
Old Apr 13, 2007, 07:16 AM   #3  
Science Expert
Capuchin is offline
 
Capuchin's Avatar
 
Join Date: Oct 2006
Location: UK
Posts: 5,237
Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.
Call Capuchin via Skype™ Send a message via MSN to Capuchin
I've solved this problem, now i have bigger and more eleborate problems! Wheee!
  Reply With Quote
 
     
 
 
Old Apr 13, 2007, 07:17 AM   #4  
rol
Senior Member
rol is offline
 
rol's Avatar
 
Join Date: Oct 2006
Posts: 879
rol See this member's comment history on his/her Profile page.rol See this member's comment history on his/her Profile page.
ha ha good luck ;-)
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Ask your question or search...



Similar Threads
Dll file error needs to be fixed on older IPC
(1 replies)
Article on handling a breakup
(7 replies)
recover a deleted file in error
(2 replies)
Error when Inporting Captivate (fla) file into Flash
(1 replies)
bootinfo.inf file not found, error code 4100
(2 replies)

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Search this Thread

Advanced Search

Bookmarks





Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 12:23 PM.