Read a railway file.

Read a railway file. You are to split the lines and create railway objects. Print the objects.