how to input text to c program in cmd ( for example my program will get input from a text file )Thanks
how to input text to c program in cmd ( for example my program will get input from a text file )Thanks
if program is run as
you can just read input from stdioCode:./prog < file.txt
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
I can not understand you when I do name_file.exe < file.txt it's give me error
what gives you an error?
which error is it?
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler