J
JasBascom
The problem is this.
If I had text in a text file e.g.
The cat is fat.
The cat is sick.
The cat may die.
then i use
outfile.write((char*) rec, sizeof(rec))
that same text appear as thus.
the cat is fat the cat is sick the cat may die.
rec is a union. outfile is in binary mode.
How do i format the outfile, or insert a next line statement before writing the
file?
If I had text in a text file e.g.
The cat is fat.
The cat is sick.
The cat may die.
then i use
outfile.write((char*) rec, sizeof(rec))
that same text appear as thus.
the cat is fat the cat is sick the cat may die.
rec is a union. outfile is in binary mode.
How do i format the outfile, or insert a next line statement before writing the
file?