file system ostream work