Input file length
I'm trying to understand a concept in the .386 architecture, also using the .387.
I have a program that is written currently with space for two input file names to be supplied through a command tail, but with a pre-defined length. Because I know the length of these two specific files, it is easy to supply the program with it. However, how would I go about reading the file size more dynamically, meaning I would not know the length of the two files (lets say .txt files or .bin files) and have the program determine the length for knowing how many times it has to loop to write an output file. One of the input files will be doing operations on the data of the other input file and therefore need to know how many times I will have to loop to write output.
BTW, I'm reading in quad words from these input files into 2 separate arrays/memory.