delorie.com/archives/browse.cgi | search |
From: | Endlisnis <s257m AT unb DOT ca> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Need Help with writing to disk files! |
Date: | Tue, 11 May 1999 17:02:44 -0400 |
Organization: | BrunNet |
Lines: | 24 |
Message-ID: | <37389AF4.AA90EC48@unb.ca> |
References: | <37374DD2 DOT B532713C AT sginet DOT com> |
NNTP-Posting-Host: | ftnts3c27.brunnet.net |
Mime-Version: | 1.0 |
X-Mailer: | Mozilla 4.51 [en] (Win95; U) |
X-Accept-Language: | en |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Don Wilkinson wrote: > What is the best way to create disk files in a program and write to it? > I would greatly appreciate the help. In C++, I would do this: #include<fstream.h> int main() { fstream Out("Out.txt", ios::out); Out << "Put this in the file\n"; Out.put(100); //puts ASCII character 100 into the file 'd' } -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT HotMail DOT com ICQ: 32959047
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |