Completed file I/O code. 100% faster than liblammpsreader!