+ 1
I am a ruby code that allows you to check for the existence of a file.WHO am i?
3 odpowiedzi
+ 6
This is his/her name:
filename = gets.chomp
fileexten = gets.chomp
puts File.file?("#{filename}.#{fileexten}")
0
File?.("file")
0
shouldn't it be File.file?("file.txt")