0
How we can make .DAT file in C
I made a program in C. I want to plot it with gnuplot but I need the .dat file. As I ran the program I didnât get any .dat file. I wonder how I can make the .dat file from my C program.
2 Answers
+ 5
you can give .dat in file name
Example :
FILE *fptr;
ptr = fopen ("filename.dat", "w");
+ 2
There is a solution here
https://stackoverflow.com/a/6934363