User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







cpp:fstream

This is an old revision of the document!


fstream

fstream is used for opening/writing to files in c++. Here is an example

#include <fstream>
 
int main() {
 
    //create file
    ofstream file; // part of the fstream class
 
    // write to a file    
    file.write("hello world!");
 
}
advertising
cpp/fstream.1371141985.txt · Last modified: 2013/06/13 18:46 by Anthony

Impressum Datenschutz