Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- name = '/tmp/foo'
- puts name
- file = File.readlines(name)
- File.open('01.txt', 'w')File.open('first.txt', 'w') {|new_file| new_file.puts file[0...100]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement