use File.join to put together a filename using directory names and a final filename: : join « File Directory « Ruby






use File.join to put together a filename using directory names and a final filename:


File.join('full', 'path', 'here', 'filename.txt')

 

Related examples in the same category

1.Join file name and folder name together