Not sure if my question is possible in C.
My dilemma is thay the way Linux saves files, a file called input.txt is different to a file called input.
If I want to open input.txt, I would explicitly have to say fopen("input.txt").
Is there a way such that if I want to open a file, I can omit the extension and still expect it to open the file by relying only on the file namd? E. G. fopen("input") would open a file with name "input" save with any extension, such as input.rtf or input.docx?
Thanks.