How to print a file to stdout?
python
Solution
Sure. Assuming you have a string with the file's name called `fname`, the following does the trick.
with open(fname, 'r') as fin:
print(fin.read())
Problem
I've searched and I can only find questions about the other way around: writing stdin to a file. Is there a quick and easy way to dump the contents of a file to `stdout`?