Re: Writing to files
- From: "Jim Langston" <tazmaster@xxxxxxxxxxxxxx>
- Date: Mon, 22 May 2006 23:30:31 -0700
"Kat" <Rem.Intellegare@xxxxxxxxx> wrote in message
news:1148320886.240250.320670@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Ok I'm currently working on a project that requires writing to external
files. I've seen many modes for opening files then writing to them.
This includes ios::out, ifstream::binary, and a couple of others.
My current program uses ofstream::binary to write to a file. I have a
test text file sitting in the same folder and every time I try to write
to it, I don't get an error message but it simply does not work(runtime
error). My guess is that I'm trying to write to an ASCII file when the
program is in binary mode but I can't be sure.
Please show the code that isn't working.
Is there a mode that will write to both ASCII and Binary or what mode
writes to ASCII files?
.
- Follow-Ups:
- Re: Writing to files
- From: Kat
- Re: Writing to files
- References:
- Writing to files
- From: Kat
- Writing to files
- Prev by Date: multithreading problem:how to close my program safely???????????
- Next by Date: ifstream error
- Previous by thread: Writing to files
- Next by thread: Re: Writing to files
- Index(es):
Relevant Pages
|