Advertisement
Nexon

Untitled

Nov 18th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. bool record_to_file(double array[array_size]) {
  2. FILE *file = fopen("array.txt", "w");
  3.  
  4. for(int i=0;i<array_size;i++){
  5. fprintf(file, "%.10f\n", array[i]);
  6. }
  7.  
  8. return fclose(file);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement