quick question, would this code be considered fully c++ or fully c? I've never learned c, but I believe that sscanf (c) is similar to cin (c++), but I'm not sure....
ifstream examplefile(argv); //open a file indicated by the single command
if (! examplefile.is_open())
cout << "Error opening file"; exit (1);
cout << line << endl;
for (i=1; i<=line; i++)
sscanf(buffer, "%d, %d", &con1, &con2);
cout << con1 << "," << con2 << endl;