file -> stream