file i/o still not working. will compile/run due to error checking.