Is it legal to walk on railroad tracks from town to town?

Thinking about a long walking trip in the US and thinking of using rail lines rather than dangerous highways.
14 answers 14