M
Mr John FO Evans
The following code snippet fails on my system
double dd;
FILE * inf;
inf=fopen(<filename>,"r");
fscanf(inf,"%g",&dd);
The text file opened is as follows:-
123.6
etc
The file opens correctly but the value of dd returned is nonsense!!
If this should work I must look elsewhere for the solution!
NB If I change this to reading integer values (from a file of integers) all is well!!
John
double dd;
FILE * inf;
inf=fopen(<filename>,"r");
fscanf(inf,"%g",&dd);
The text file opened is as follows:-
123.6
etc
The file opens correctly but the value of dd returned is nonsense!!
If this should work I must look elsewhere for the solution!
NB If I change this to reading integer values (from a file of integers) all is well!!
John