From bcbcc75d3eb3fcdf7044277bd30eacbc4b493001 Mon Sep 17 00:00:00 2001 From: Sam Stern Date: Wed, 20 Jul 2022 18:38:49 +0100 Subject: [PATCH] Create index.cc --- languages/index.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 languages/index.cc diff --git a/languages/index.cc b/languages/index.cc new file mode 100644 index 0000000..c0f9a90 --- /dev/null +++ b/languages/index.cc @@ -0,0 +1,14 @@ +#include +#include +using namespace std; + +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(); +}