mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 22:20:57 -05:00
17 lines
289 B
C++
17 lines
289 B
C++
|
// Copyright 2021 GitHub
|
||
|
|
||
|
#include <iostream>
|
||
|
#include <fstream>
|
||
|
using std::string;
|
||
|
|
||
|
int main() {
|
||
|
// Create and open a text file
|
||
|
ofstream MyFile("filename.txt");
|
||
|
|
||
|
// Write to the file
|
||
|
MyFile << "Files can be tricky, but it is fun enough!";
|
||
|
|
||
|
// Close the file
|
||
|
MyFile.close();
|
||
|
}
|