CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reply for "File I/O"



In a message dated 98-05-25 22:41:22 EDT, you write:

<< Sorry, I may not understand your problem or my knowledge is terrible. So 
 I don't know your matter. I think TEdits Object is designed for Delphi 
 or OOP of Pascal but the function you have used is C language.
 Can you send me detailed problem. I am very interesting with this 
 matter. Perhaps I can give you some good.
  >>

OK, This is what I have, I setup an array: int Data[8][500]. This allows me up to 
500 records of 8 interger values. I read them to disk using FILE *fp. When I get to 
an entry that the first value is a zero I stop. This is to save disk space.
One of these days I'll try using "new" but that's another subject.
I want to switch to ifstream and ofstream to be more compatible with NT machines.
I get exceptions using FILE. Some times It works fine, sometimes not.
What usually happens is I can load and save as long as I don't turn off the computer.
But if I have a file on disk I could load yesterday I can't load it today. This makes
NO LOGICAL SENSE but that's what happens. SO, I want to work out a way to 
use streams instead. It's the prefered method anyway. If you want to advise me
or send an example I will be very glad to get it.
   In particular I need a way to deal with a number like 9990999 because zero
is also NULL.   Still interested????? ( I hope) Gary



W Komornicki's Home Page | Main Index | Thread Index