Writing the file by C++ programming
PROGRAM BODY
#include iostream
#include string
#include fstream
//I can't put the horizontal v shaped signs those are called as HTML components here so sorry
using namespace std;
int main (){
ofstream file ("sabi11.txt");
if(!file.is_open()){
cout<<"an error occured"<<endl;
}else {
cout<<"Successfully opened the file"<<endl;
file <<"I am the emperor sabi so don't bow down lols"<<endl;
file <<"dears its a new program a second of series so lets do it shall we?!"<<endl;
file.close();
}
return 0;
}
Working of program
The file sabi11 is created by the program itself and the instructions are written on the file.
I hope you guys enjoyed it stay tuned
Leave Writing the file by C++ programming to:
Read more #programming posts
Best Posts From Emperor Sabi
We have not curated any of learnandgrow's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Emperor Sabi
- Thursday freewrite__ Prompt: cityscape
- ZapFic Monday - Prompt: engagement in 240 character or less
- Poser Pro 11 - Discover the Art of the Human Form with Poser
- YELLOW PAGES SPIDER - GET THOUSANDS OF LEADS ON DEMAND
- MindGenius Business - Creating complex business idea maps, strategies,plans & more
- Quickbooks Pro - software for managing businesses effectively and efficiently
- Autodesk Revit MEP - Best for designing 2D structural and 3D model of a building
- eDrawings Professional - The Easiest Way to Share 3D Data Across CAD Environments
- GiftedMotion - GiftedMotion is a free and easy & open source GIF animator
- Blumentals WeBuilder - fast, intelligent & all in one code editor for web developer