User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







cpp:fstream

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!");
 
    // close file
    file.close();
 
}

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
cpp/fstream.txt · Last modified: 2024/02/16 00:48 (external edit)

Impressum Datenschutz