#include<iostream.h> #include<fstream.h> #include<conio.h> int main() { fstream f; f.open("E:\\Text1",ios::out|ios::binary); f<<"Hello how are you?"; f.close(); getch(); return 0; }
#include<iostream.h> #include<fstream.h> #include<conio.h> int main() { fstream f; f.open("E:\\Text1",ios::out); f<<"Hello how are you?"; f.close(); getch(); return 0; }</conio.h></fstream.h></iostream.h></conio.h></fstream.h></iostream.h>
CR
LF
"\r"
"\n"
<<
std::ostream
put
write
ios:binary
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)