Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILE *fp;
- fp = fopen("C:\Python\Peresechtriangle\Logger.txt", "w");
- if (fp == NULL) {
- printf("could not open file");
- }
- else {
- fgets (fp, 23 , "Еriangle coordinates:\r\n");
- fscanf(fp, "%f%f\r\n%f%f\r\n%f%f\r\n", &C.a.x, &C.a.y, &C.b.x, &C.b.y, &C.c.x, &C.c.y);
- fclose(fp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement