Ruby Script To Insert Lines In A File
f = File.new("/vbproj.txt")
begin
while (line = f.readline)
$stdout.print line
$stdout.print "SetReport csv " + 34.chr + "c:\\singleton3.csv" + 34.chr + "\n"
$stdout.print "Report Summary\n"
end
rescue EOFError
f.close
end
begin
while (line = f.readline)
$stdout.print line
$stdout.print "SetReport csv " + 34.chr + "c:\\singleton3.csv" + 34.chr + "\n"
$stdout.print "Report Summary\n"
end
rescue EOFError
f.close
end

0 Comments:
Post a Comment
<< Home