Simple resource management functions
Strings are very inefficient, and I will release future separate
I only provide these to allow users to test simple I/O without requiring any
additional library dependencies.
Read lines from a file, automatically opening and closing the file as necessary