The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: fotschek on February 14, 2005, 06:49:40 PM

Title: Accesing a text file
Post by: fotschek on February 14, 2005, 06:49:40 PM
Does anybody know how to access a text file from assembler level (intel 86 type) and then sequentialy reading lines from it. I know that it has something to do with int21h but nothing more. If You have a pice of code which shows how to do it i'd be very glad :)  . any tutorials on it also very well expected!   

grzegorz

p.s. sorry for my english :)
Title: Re: Accesing a text file
Post by: Randall Hyde on February 14, 2005, 09:45:38 PM
Quote from: fotschek on February 14, 2005, 06:49:40 PM
Does anybody know how to access a text file from assembler level (intel 86 type) and then sequentialy reading lines from it. I know that it has something to do with int21h but nothing more. If You have a pice of code which shows how to do it i'd be very glad :)  . any tutorials on it also very well expected!   

grzegorz

p.s. sorry for my english :)

The Art of Assembly Language, both 16-bit and 32-bit versions, have chapters on this very subject. You'll find the Art of Assembly at http://webster.cs.ucr.edu.
Cheers,
Randy Hyde