Implemented basic readLine and write operations for File and Popen.