Well, how about this.
*shakes head*
After playing some more I finally figured it out. The file stream was going into failstate, so just closing and reopening a file isnt going to work in this...
Type: Posts; User: mol
Well, how about this.
*shakes head*
After playing some more I finally figured it out. The file stream was going into failstate, so just closing and reopening a file isnt going to work in this...
Well, I am getting a runtime error when I try to run the code above. In fact, I get the error for not being able to open the file the second time. Then the division by zero error crashes it since the...
guest, thx for the code help.
I tried outputting to the screen to see exactly where the failure was and it is indeed upon 'opening' the file the second time. Now, why it is not closing/opening...
*tears hair out*
No one has any other ideas?
Thanks swoopy. I caught all my init stuff. That was just a dumb mistake. I know that the file is being found because it actually performs the first loop and outputs to the file. The other loop is...
Ack.
Thats javascript...sorry.
Also:
http://www.javascriptcity.com/forums/
Thats how I would do it as well, but for this one I have to make each read independent. I am still trying to figure it out. It is rather maddening.
Oh, and just so everyone knows. I have...
Ok. I have been playing a bit with it and I have found that the problem must lie in how I am opening and closing the file. Reason: if I take the first routine out and only open the file one time then...
Ok. Be a little gentle. Im coming from microprocessor background so file i/o is a bit new to me. Anyway, here is some code below. Its pretty simple, its reading a file that has multiple lines of ints...
I will tell you this. Most of my work in C is with microcontrollers (pic's, etc) and I wish I could find a place to talk about the use of C with that in mind. It really is a whole different world and...
Are you an android?
Humans are not the only animals with emotion. Just ask my cat.
This was also one of my interpretations. And I am quite happy to keep that theory intact.
Hey, SeriesXWhatever....
If you were really interested in efficiency, then you would not be WASTING your time and everyone elses posting this crap here. We are in this forum to lounge and have a...
Ack!
I am now dumber after reading this thread.
:p
I didnt 'understood' either, but I am trying to 'understand'.
:rolleyes:
I was just having a discussion with my boss about something similar. New programmers are not being taught with any consistency today.
I decided to hit the college trail and actually get a real...
Heh. Now I have something to shoot for...