From: "Ajay Bansal" <Ajay_Bansal@infosys.com>
To: "John Love-Jensen" <eljay@adobe.com>, <gcc-help@gcc.gnu.org>
Subject: RE: A simple question of fstream
Date: Thu, 30 Jan 2003 13:00:00 -0000 [thread overview]
Message-ID: <2B721C6525F0D411B1E900B0D0226BDD02148CD8@mohmsg01.ad.infosys.com> (raw)
Still doesn't work with gcc 3.2.1, RH73
-----Original Message-----
From: John Love-Jensen [mailto:eljay@adobe.com]
Sent: Thursday, January 30, 2003 6:19 PM
To: Ajay Bansal; gcc-help@gcc.gnu.org
Subject: Re: A simple question of fstream
Hi Ajay,
I modified your example (see below), and it works for me (GCC 3.1 on OS
X).
Sincerely,
--Eljay
#include <fstream>
#include <iostream>
#include <cstdlib>
#include <cerrno>
using namespace std;
int main()
{
fstream iostrm;
iostrm.open("new1.txt", ios_base::out | ios_base::in);
cout << errno;
iostrm.write("gagan", 5);
iostrm.close();
return 1;
}
next reply other threads:[~2003-01-30 13:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-30 13:00 Ajay Bansal [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-01-30 10:31 Ajay Bansal
2003-01-30 10:15 Ajay Bansal
2003-01-30 10:23 ` Michal Liptak
2003-01-30 12:53 ` John Love-Jensen
2003-01-30 13:03 ` John Love-Jensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2B721C6525F0D411B1E900B0D0226BDD02148CD8@mohmsg01.ad.infosys.com \
--to=ajay_bansal@infosys.com \
--cc=eljay@adobe.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).