this is quick and dirty but it shoul do what you want.
just remember to check that the file exists.
#include <fstream>
#include <iostream>
using namespace std;
int main(int argc, char * argv[]){
if (argc!=2){
cout<<"Usage is: "<< argv[0]<< " <infile>\n";
return...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.