what is fioGets()? i never heard of it. why donr you use fwrite() or fread()? thats the best way to program for C. if thats what your looking for.
example
////////////////////////////////////
#include <stdio.h>
int main()
{
FILE *fopen(), *in_file;
char line[81];
in_file = fopen("text.txt","r");
if(in_file == NULL)
{
//error
exit();
}
while(fgets(line, 81, in_file) != NULL)
puts(line);
fclose(in_fine);
return 0;
}
//////////////
btw you should really check out GameDev.net