"info.uc" is a not a "format" -- it's a name. "Format" relates to the content of the file, which may or may not be different from any other file with a similar or different name. To properly read a file with another kind of of content/format, you adjust the code and logic that comes after fopen().