Moved some methods to the base class FileHandle as they where platform independent.