use File.expand_path to turn basic filenames into complete paths : File SEPARATOR « File Directory « Ruby






use File.expand_path to turn basic filenames into complete paths


File.expand_path("text.txt")

 

Related examples in the same category

1.OS independent