I am using Visual C++ 6.0 and I have a code that we have written a long time ago for running some simulations. It used to work fine but now something is wrong. It cannot access a file with extension .f. This file (predat.f) includes data generated for the simulations using another code.
What do think, does this have something to do with the file type? If yes, could anyone give me an update of what file type(s) could be used in this case? Thank you for your help!
Code:
#include "param.h"
extern long
#include "gintdat.h"
extern double
#include "gfloatdat.h"
void Addjobs(long);
void Iter(long);
void Savestat();
void Pstatus();
FILE *predat, *dataf;
#include <process.h>
void Update(long rtime)
{
long fnojobs, fnomach, curjob, i, im, ind;
if (rtime < 10)
{
if ( (predat = PREDAT) == NULL )
{
printf("\n\nCould not open file predat.f\n");
printf("\nPress CTRL-C to cancel program execution.\n");
cin >> apu;
}
iter = iterind-1;
fscanf(predat,"%ld %ld %ld %lf ", &seed, &fnojobs, &fnomach, &ddrge);