Mail Archives: djgpp-workers/2013/07/20/07:35:05
> From: "Stephen J. Turnbull" <turnbull AT sk DOT tsukuba DOT ac DOT jp>
> Date: Sat, 20 Jul 2013 19:54:47 +0900
>
> Eli Zaretskii writes:
> > > From: "Stephen J. Turnbull" <turnbull AT sk DOT tsukuba DOT ac DOT jp>
> > > Date: Sat, 20 Jul 2013 17:20:25 +0900
> > >
> > > I would assume that
> > >
> > > ifp = fopen(infile, "r"); ofp = fopen(outfile, "w");
> > >
> > > produces an unwritable and an unreadable file respectively
> >
> > There's no such thing as "unreadable file" on DOS.
>
> Sorry, I didn't mean "file" (too much Python programming, obviously),
> I meant "FILE*". Can you read from ofp on DOS?
That last question is no longer in DOS-land, it is in the libc-land.
Because DOS knows nothing of 'FILE *'.
So we are back at square one: is there any good reason, apart of
"other libraries do that", which mandates that a FILE stream open with
"w" be unreadable?
- Raw text -