I just wanted to ask if it's possible to read to a specific file format, say if I wanted to read from a file that has a format of something "info.uc" or "main.uc", how would I go about doing that in C?
This is a little something I am making and I want to know how to read from a specific text file format:
#include "include/load_uc_file.h"
bool find_file_format()
{
FILE* fileptr;
fileptr = fopen("", "r");
if (fileptr == NULL)
{
printf("The file was not found");
}
return false;
}
If anyone has an answer to this, that would be great.