If the file named "pragprog.txt" contains the text from the preface to The Pragmatic Programmer: From Journeyman to Master, by Andrew Hunt and David Thomas (Addison-Wesley, Oct 1999), then what is the output of the following program?
main
record
intro ,a80
proc
open(1,o,"TT:")
open(2,o,"pragprog.txt")
try
begin
xcall get_line(3, intro)
writes(1, %atrim(intro))
end
catch (e, @Exception)
writes(1, "tl;dr")
endtry
close 2
end
function get_line, ^val
in req channel ,int
out req buffer ,a
proc
reads(channel, buffer) [err=err]
freturn 1
err,
freturn 0
end
a. “You really need to read this book!”
b. “This book will help you become a better programmer.”
c. “tl;dr”
d. a blank line