cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Text file
Text file
Jun 21, 2011 at 9:14pm UTC
ty98
(164)
Ok so can sombudy show me how to make a text file with a program?
Jun 21, 2011 at 9:20pm UTC
Athar
(4466)
1
2
3
4
5
6
#include <fstream>
int
main() { std::ofstream os(
"file.txt"
); os <<
"a text file\n"
; }
http://www.cplusplus.com/doc/tutorial/files/
Topic archived. No new replies allowed.