file open and read buffer add