I want to take input from a file(input.txt) into my .py file and display it in an output file(output.txt). I don't want to use file handling at all.
I tried following in terminal:
$ python3 hello.py > output.txt
and a file was created with the output.
But is there a method such that I can take input from a file to the .py file and it generates output.txt.
something like:
$ input.txt > python3 hello.py > output.txt
python3 hello.py < input.txt > output.txt