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

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

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

 
Thread Tools Search this Thread Display Modes
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,236
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,236
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

 
Similar Sponsors


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

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)

Search this Thread

Advanced Search

Bookmarks

Sponsors



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