+ 1

I am a ruby code that allows you to check for the existence of a file.WHO am i?

4th Mar 2017, 9:27 AM
Emmanuel Nuotah
3 ответов
+ 6
This is his/her name: filename = gets.chomp fileexten = gets.chomp puts File.file?("#{filename}.#{fileexten}")
17th Mar 2017, 1:43 AM
MrCoder
MrCoder - avatar
0
File?.("file")
4th Mar 2017, 9:44 AM
Jan Andersson
Jan Andersson - avatar
0
shouldn't it be File.file?("file.txt")
16th Mar 2017, 12:17 PM
iRonnie16
iRonnie16 - avatar