I want to remove the content form the list of files.
EDIT :
I have list of files.
file1 file2 file3
Those file containing bunch of lines ...
I want to remove all the lines from each files.
I want to remove the content form the list of files.
EDIT :
I have list of files.
file1 file2 file3
Those file containing bunch of lines ...
I want to remove all the lines from each files.
Looks like you need to truncate file. Do something like:
File.open('/tmp/file', 'w') {|file| file.truncate(0) }