Consider the following statement: $buffer = a string; Also consider that a file named test.txt contains the following line of text:One line of test text.What is the output of the following lines of code? $file = “test.txt”; open (OUT, “<$file”) || (die “cannot open $file: $!”); read(OUT, $buffer, 15, 4); print $buffer;
A. a strOne line of test
B. a stOne line of tes�
C. a strOne line of tes�
D. a stOne line of test�
Answer:B
Consider the following statement: $buffer = a string; Also consider that a file named test.txt contains the following line of text:One line of test text.What is the output of the following lines of code? $file = “test.txt”; open (OUT, “<$file”) || (die “cannot open $file: $!”); read(OUT, $buffer, 15, 4); print $buffer;
A. a strOne line of test B. a stOne line of tes� C. a strOne line of tes� D. a stOne line of test�