Hi everyone,
I need to write a bunch of x,y coordinates to a txt file one below the other using C(only).
I'm able to do so but all the coordinate values occur one next to the other.
Here's my code:
FILE *file1 = fopen ( "/cygdrive/d/newfile1.txt", "w" );
printf("The new coordinates are:\n");
for(i=0;i<35;i++)
{
printf(" %f \t%f\n",x[i]*multFact,y[i]*multFact);
fprintf(file1,"%f \t%f\n",x[i]*multFact,y[i]*multFact);
}
fclose(file1);
P.S: I'm using netbeans6.9.1 and cygwin compiler.