when we handling multiple input in the program using input file creation sir use the command .\handling_multipleinputs<input_file.txt
but the command is not working in windows and i guess sir using linux so pls help what command we use in windows
Handling multipe inputs
hello @dipeshgupta197
yeah that command work in mac only.
follow this->link
to read and write from/to file
i cant able to get as sir uses command in compilation and the link u shared with me is wriiten in the code form pls provide me the code as i am not getting this i use several options
freopen(“input_file.txt”,r,stdin) this is used
.\online_judge.exe<input_file.txt>
…
u dont have to use this command , this is works in mac.
after adding this line.
write ur input in input.txt and read using cin…
i want to know that where i used this as i use this in command prompt tell me is it is used in code
in the code, add it in the starting of the int main
ty sir i cleared my doubt
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.