# File lib/puppet/util/fileparsing.rb, line 313
313:     def to_file(records)
314:         text = records.collect { |record| to_line(record) }.join(line_separator)
315: 
316:         if trailing_separator
317:             text += line_separator
318:         end
319: 
320:         return text
321:     end