(file-handler)+implemented write_to_file

First line is the data width, then the sand particles of each cell per
row.
This commit is contained in:
2023-08-25 19:19:50 +01:00
parent f155f0e088
commit 58970e8a68
2 changed files with 18 additions and 1 deletions

2
main.c
View File

@@ -117,6 +117,8 @@ int main(void)
if (state.thread_alive)
pthread_cancel(step_thread);
write_to_file(&state, "data.out");
CloseWindow();
return 0;
}