1. retrieve record from record file(binary) to output to disply, need help
Dear linux programmers(c/c++):
I use following subsetion of my programs to try to retrieve the
record(some string variable cusnumber, from a record(binary) file,
but I get nothing (NULL of that string) at outfile(either display or
outfile)
I uses djgpp compiler with the book of c++(Liberty, sam , white) on
window98
Please help, welcome any tech suggestions, sincere eric,
---------------------------------------------------------------------------
ifstream CustomerInFile("CustomerFile.fil",ios::binary|ios::nocreate);
// CustomerInFile.read((char *) &customer, sizeof(customer));
outfile.open("cusrep.txt");
outfile << " Customer number, Customer name, Address, City,
State,dateofbirth, PhoneNumber, Balance\n";
//while ( CustomerInFile.read((char *) &customer, sizeof(customer))
while ((CustomerInFile))
{
CustomerInFile.read((char *) &customer, sizeof(customer));
//cout << " Customer number, Customer name, Address, City,
//State,dateofbirth, PhoneNumber, Balance\n";
*cusnumber = *customer.cusnumber;
CustomerInFile.get(cusnumber, 6);
outfile << customer.cusnumber;
cout << cusnumber << "-------cusnumber\n";
2. WOW - This is Interesting
3. converting multi-line records to single line record
4. PPP and routing questions
5. Fixed length records containing 2 different records types with fixed field widths
6. Rolling my own keylogin for Solaris 2.4
7. Concatenating multiple records into a single record
8. XFS Oopses with 2.4.5 and 2.4.14?
9. Convert a big record into chunks of small records
10. dd: x records in and x records out
11. MX records and 2 A records to 1 ip? is that ok?
12. dig and nslookup don't report multiple cname records (nor multiple a records?) - Is there a tool which will?
13. HELP problem recording sound under Linux