File.new creates a new object of the class File using the method new.
file1 = File.new("Sample", "r")