mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-18 10:42:14 -05:00
6c2f03ffb4
Some checks are pending
Publish Images / Build and Test (push) Waiting to run
Publish Images / Release (push) Blocked by required conditions
Build and Test / Set build metadata (push) Waiting to run
Build and Test / Build and Test (push) Blocked by required conditions
Build and Test / Test the Super-linter GitHub Action (push) Blocked by required conditions
Build and Test / Build test suite matrix (push) Waiting to run
Build and Test / Run test cases (push) Blocked by required conditions
Build and Test / Check if all the tests passed (push) Blocked by required conditions
Build and Test / preview-release-notes (push) Waiting to run
Lint commit / commitlint (push) Waiting to run
Prepare tests for linters and formatter updates.
18 lines
308 B
C++
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();
|
|
}
|