use File.join to put together a filename using directory names and a final filename:
File.join('full', 'path', 'here', 'filename.txt')