MOV AH,3DH
MOV DX,OFFSET(FNAME)
MOV AL,0 ; 0 MEAN FOR READING PURPOSE ;OPEN
INT 21H
MOV HANDLE,AX
MOV AH,3FH
MOV BX,HANDLE
MOV DX,OFFSET(BUFFER) ;READ
MOV CX,30
INT 21H
MOV AH,3EH
MOV DX,HANDLE ;CLOSE
INT 21H
Now here the program reads only 30 letters from the file. I need is to read the whole file without knowing how many letters in it so how much letter it has the program will read them all.