Transactional file input stream implementation