Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
File Write Example
pdf_file = File.open("in.txt") # here in.txt is the input file that you want to read
output_file = File.open("out.txt", "w")
pdf_file.readlines.each do |l|
output_file.puts(l)
end
output_file.close
pdf_file.close
Some text in file
Another line of text
1. Line 1
2. Not really line 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.