0

RE: Getting File Info

Fill in the blanks to open the file "demo.txt" and output its contents if it is readable. if . ("demo.txt") File. ("demo.txt") end File writable? readable? file? read

23rd Nov 2016, 1:03 AM
Miles Griffith
Miles Griffith - avatar
2 odpowiedzi
0
The answer is File readable? read
24th Nov 2016, 6:05 PM
Miles Griffith
Miles Griffith - avatar
0
if File.readable? ("demo.txt") File.read ("demo.txt") end
28th Feb 2019, 5:02 AM
Vijaylaxmi Awate
Vijaylaxmi Awate - avatar