Skip to content

Commit

Permalink
Added read/write to file example program
Browse files Browse the repository at this point in the history
  • Loading branch information
erikasan authored Aug 30, 2019
1 parent 83ce256 commit c4cbf15
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions readandwritetofile.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <iostream>
#include <fstream>

using namespace std;


int main(int argc, char* argv[])
{
ifstream infile;
ofstream outfile;

char *infilename;
char *outfilename;
infilename = argv[1];
outfilename = argv[2];

outfile.open(outfilename);
outfile.close();
return 0;
}

0 comments on commit c4cbf15

Please sign in to comment.