File, InputStream and OutputStream as platform-independent interfaces