Moved open file stuff to BaseFs baseclass.