superlint/test/linters/cpp/cpp_good_01.cpp
Marco Ferrari 6c2f03ffb4
chore: prepare tests for updates (#6279)
Prepare tests for linters and formatter updates.
2024-11-14 15:29:44 +01:00

18 lines
308 B
C++

// Copyright 2021 GitHub
#include <fstream>
#include <iostream>
#include <string>
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();
}