Been a little bit rusty in coding but I figured I'd ask this question. I'm trying to create a program that can take a command line filename and scan said file in order to find coordinates of triangles in xlib. I know that xlib takes triangles in the format T(28,100) (23,35) (99,54) from a file a friend gave me, but after looking and trying out different expression in scanf, I can't seem to grab the coordinates in a way that I can use for an algorithm:
int main(int argc,char *argv[])
{
// First need to scan the file.
char *pFilename = argv[1];
FILE * pFile;
pFile = fopen(pFilename,"r");
// char Trig = scanf( ,);
}