Merge pull request #337 from yaderson/master

Add c++ file contribution :)
This commit is contained in:
Josh Cunningham 2018-10-09 08:53:25 -07:00 committed by GitHub
commit 418168f671
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 1 deletions

View File

@ -1725,7 +1725,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU
# X # X
# Y # Y
### Yaderson Patiño
- Im from Colombia .student of programing, junior web Developer, in Vue Js, Node... Javascript is amazing
- [![twitter-alt][twitter-img]](https://mobile.twitter.com/Yaderr_)
[![github-alt][github-img]](https://github.com/yaderson)
### Yee Antonio ### Yee Antonio
- I am a Backend and Mobile Developer. - I am a Backend and Mobile Developer.

View File

@ -0,0 +1,26 @@
/* WORKING FIRST FILE BINARY */
#include <iostream>
#include <fstream>
using namespace std;
int main(){
char msg[100];
ofstream escritura("File1.txt");
if(escritura.fail()){
cout<<"Error in FILE";
}else{
cout<<"FILE Successfully generated"<<endl;
cout<<"Msg: ";
fflush(stdin);
gets(msg);
escritura<<msg;
}
escritura.close();
/* cout<<"Archivo -- close"<<endl;
char ar[100];
ifstream lectura("archivo1.txt");
lectura >> ar;
cout<<ar<<endl;
lectura.close();
*/
}