Lets say i did something like
{
....
spGrades = fopen ("temp.txt","w");
fclose (spGrades)
....
}
where will be the temp.txt written to ? and how can we change the written location of the temp.txt ? thx in advance
Lets say i did something like
{
....
spGrades = fopen ("temp.txt","w");
fclose (spGrades)
....
}
where will be the temp.txt written to ? and how can we change the written location of the temp.txt ? thx in advance
>where will be the temp.txt written to ?
Most likely the current working directory
>how can we change the written location of the temp.txt ?
Change the current working directory, or specify an absolute path rather than a relative path.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.