Please help converting my Java program

class ParserX
def initialize(the_filename)
@input_string = “”
unless the_filename.nil?
File.open(the_filename, “r”) {|f| @input_string = f.read}
end
end

def convert
@input_string.gsub /,?\s\s+/, “\n”
end
end

read_file_contents1 = ParserX.new(“ohoh2.txt”)
parsed_file = read_file_contents1.convert

Could golf this one a helluva lot more, but its a fairly literal
conversion…

David Naseby

···

-----Original Message-----
From: Dmitrii PapaGeorgio [mailto:dmitrii@woh.rr.com]