Hi! This example was what I've been getting myself. What I want is when
you run the program, you have the 'questions' already displayed on the
screen.

Ex:
c:\ ruby test.rb
First Name:                                   Last Name:
Town:                                            City:

Thanks!


> #!/usr/bin/ruby -w
>
> class UserInterface
>    def process_item(s)
>       begin
>          print "Please enter your #{s}:"
>          reply = STDIN.readline.chomp
>       end while(reply.length == 0)
>       return reply
>    end
>    def get_user_data()
>       name = process_item("name")
>       address = process_item("address")
>       zip_code = process_item("zip code")
>       return name,address, zip_code
>    end
> end
>
> ui = UserInterface.new
>
> name, address, zip_code = ui.get_user_data()
>
> puts name, address, zip_code
>
> ------------------------------------------
> 
> -- 
> Paul Lutus
> http://www.arachnoid.com