0

hi ,
iam new asm and i heave problem exercise
the exercise:
1-Make a data file named "file.txt" with 10 integers, each on a separate line and each between 0 and 160.

2. Write an assembly program which does the following:
a. looks for the above file in your working directory.
b. if file not found it:
(i) displays error message
(ii) then exits.
c. if file is found then it:
(i) first reads all the numbers
(ii) then prints how many there

how can i read integer number from file.txt?then print it?

2
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by warrior_2010
0

Correct me if I'm wrong, but isn't tasm a DOS assembler, and as such restricted to the archaic DOS interrupts for doing things?

yes,that's right
and thanks for your help

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.