Read a railway file.