Revert "Modularized opening, reading, and creating files"

This reverts commit f9ed10517d9f862483ff72541d732fa6f5ba97cb.