Read file without fopen() (C language)
I am working on a school project in which we have to do some operations (select, min, max) on a table saved in .txt file. The problem is that we can't use common functions such as fopen, fscanf, fclose. The program will be launched from command line like this: .\project.exe select parameters <table.txt Do you have some ideas how to get content of the .txt file to stdin without using fopen? Thanks. You do not need to open the file - the operating environment will do it for you. When your program is called with <table.txt , your standard input is switched to read from that file instead of the