Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. FILE *fp;
  2. fp = fopen("C:\Python\Peresechtriangle\Logger.txt", "w");
  3. if (fp == NULL) {
  4. printf("could not open file");
  5. }
  6. else {
  7. fgets (fp, 23 , "Еriangle coordinates:\r\n");
  8. 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);
  9. fclose(fp);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement