Din fisier citim folosind functia 3fh: Compatibility: 2.0+ Expects: AH 3fH BX file handle CX number of bytes to read DS:DX address of buffer to receive data ------------------------------------------------------------------ Returns: AX error code if CF is set to CY if no error, AX=number of bytes actually read ------------------------------------------------------------------ Info: Reads CX bytes of data (or fewer) from the file or device with handle number BX. The data is read from the current position of the file's read/write pointer and is placed into the caller's buffer pointed to by DS:DX. This updates the file's read/write pointer to set up for a subsequent sequential-access read or write. To access a specific part of a file, use Fn 42H (Lseek) before this call. Iar scriem folosind functia 40h: Compatibility: 2.0+ Expects: AH 40H BX file handle CX number of bytes to write (Note: 0 means truncate the file) DS:DX address of a buffer containing the data to write ------------------------------------------------------------------ Returns: AX error code if CF is set to CY number of bytes actually written ---- use for error test ------------------------------------------------------------------ Info: Writes CX bytes of data to the file or device with handle number in BX. The data is taken starting from the caller's buffer pointed to by DS:DX. The data is written to the current position of the file's read/write pointer. This updates the file's read/write pointer to set up for a subsequent sequential-access read or write. To write to a specific part of a file, use Fn 42H (Lseek) before this call.