Hi,
I am new in assembly and i nave some problems.
I am working on some project for school i should read text from .txt file. The problem is that i don't now how to get the number of chars contained in .txt file that i need to store in CX register.
;Oren .txt file
mov ah,3dh
mov al,00h
lea dx,NameOfFile ;(for example test.txt)
int 021h
mov bx, ax
;Hire i should store in cx numbers of chars to read from opened file but because it is not same for all .txt files i am reading from i get stacked
;read from .txt file
mov cx,??????
mov ah,3fh
lea dx,TextArray
int 021h
I hope you get my point, and sorry for my lame English.
Thanks in advance