Skip to content

Instantly share code, notes, and snippets.

@phwd
Created April 29, 2011 00:17
Show Gist options
  • Save phwd/947617 to your computer and use it in GitHub Desktop.
Save phwd/947617 to your computer and use it in GitHub Desktop.
hoppity
#include <iostream>
using namespace std;
int main (int argc,char *argv[]) {
int line;
FILE * myfile;
if (argc ==1)
{
return 0;
}
myfile = fopen(argv[1],"r");
if(myfile == NULL)
{
return 0;
}
fscanf(myfile,"%d",&line);
fclose(myfile);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment