a guest Mar 24th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand