Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.09 KB | None | 0 0
  1. File.open("filename.txt", "r"){|aFile| aFile.each_line {|line| puts line if line =~ /asdf/}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement