Mega Code Archive

 
Categories / Ruby / File Directory
 

Checking If a File Exists

puts "It exists!" if File.exist?("file1.txt")