Computer Science, asked by riyadhanbad7633, 1 year ago

Point out the errors if any
/ basic file operations#include #include usingnamespacestd;int main () {ofstreammyfile;myfile.open ("example.txt");myfile<< "Writing this to a file.\n";myfile.close();}

Answers

Answered by keshav7337
0
# include <io stream. h>
# include <conio. h>
void main ()
{
int
Answered by suman88593
0
#include<iostream.h>
#include<conio.h>
#include<ofstream.h>
void main()
{
int myfile;
if(0>myfile)
{
cout<<"writing this to a file";
}
else
{
cout<<"my file";
}
getch();
}
Similar questions