pdf_file = File.open("in.txt") # here in.txt is the input file that you want to readoutput_file = File.open("out.txt", "w")pdf_file.readlines.each do |l| output_file.puts(l)endoutput_file.closepdf_file.close
Some text in fileAnother line of text 1. Line 12. Not really line 2
Please sign in to comment on this gist.