platform: do not read from non-opened file