+ 1

Fill in the blanks to output the size of the file called "db.csv" if it exists.

6th Apr 2017, 10:07 AM
Notan Mondal
6 Answers
+ 1
if File.file?("db.csv") puts File.size("db.csv") end
6th Apr 2017, 10:09 AM
Notan Mondal
0
Fill in the blanks to check if the file exists and output its contents if it does. Answer: if File.file?("myfile") puts File.read("myfile") end
21st Nov 2020, 6:34 AM
Jason Chew
Jason Chew - avatar
0
Fill in the blanks to determine whether the file exists. class A { public static void main(String args[ ]) { File file = File("a.txt"); if(file. ()) { System.out.println("Yes"); } } }
15th Dec 2020, 5:15 AM
sachin
sachin - avatar
0
Answer: 1. new 2. exists
23rd Mar 2021, 5:21 PM
Tejashree Suryawanshi
Tejashree Suryawanshi - avatar
0
new exists
23rd Apr 2022, 12:51 AM
Pasindu Senanayake
- 1
new
15th Mar 2021, 11:58 AM
Jayesh Bharat Chaudhari
Jayesh Bharat Chaudhari - avatar