Question: ; Read from file mov eax, fileHandle mov edx, OFFSET buffer mov ecx, lengthof buffer call ReadFromsile call Closefile mov edx, OFFSET buffer call writeString
; Read from file mov eax, fileHandle mov edx, OFFSET buffer mov ecx, lengthof buffer call ReadFromsile call Closefile mov edx, OFFSET buffer call writeString call Crlf ; file handle in eax : address of array to store bytes in ; max number of bytes to read ; Read fron file close file : Reset address in edx : write ile contents to the screen. EXITOUT: exit main ENDP END main There are good examples of file IO in Chapter 11 of the text book. In addition you can view the help for the Irvine Library here. Ihttp:l amming.msic.edulasm Your Task! p70 p509tt ch 1stb Write a program that creates a new text file. Prompt the user for a Players name, batting average, and slugging percentage. Write this information to the file one record per line all items comma separated like the following: Glenn Stevenson, Average: .310, Slugging 850 You should have a loop mechanism that vwill allow users to input as many records as the wish. In other words ask if they want to input another record. To make your life easier you are probably going to want to treat all fields as text
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
