Small change in FileIO and some new methods in BaseLib.

New methods in BaseLib are basically motivated by the Gocad interface. I think this functionality is useful immediatly.