Hi all.
Could anyone please put comments on each command that Ancient Dragon posted? It's just to be sure what each of them means.
I'm having trouble compiling this (it's not what Ancient Dragon wrote!!):
//blabla
char OutFile[100];
FILE* fp;
sprintf(OutFile,"wind%d", date);
fp = fopen(OutFile,"w");
OutFile << "Longitude\tLatitude\tDirection\tVelocity\n";//here appears an error!!
//blabla
Maybe there is another way of writing information into the output file, but I'm used to writing in c++...not c.
thanks for your time.