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
0
# include <io stream. h>
# include <conio. h>
void main ()
{
int
# include <conio. h>
void main ()
{
int
Answered by
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();
}
#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