Advertisement
Guest User

Untitled

a guest
Oct 28th, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.17 KB | None | 0 0
  1. Dir.glob(Rails.root+"public/nec/pg/*.txt") do |filename|
  2.   data=File.read(filename)
  3.   buff=[]
  4.   data.gsub("\n"," ").split(".").each{|x| if x.size>15; buff<<x end};var=0
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement