Re: Newbie needs help getting user input



7stud -- wrote:

2)
f = File.open("data.txt", "w") do |file|
file.puts("goodbye mars")
end

Whoops, too slow. And I had some detritus stuck to the front of that
example anyway. It should be:

2)
File.open("data.txt", "w") do |file|
file.puts("goodbye venus")
end
--
Posted via http://www.ruby-forum.com/.

.



Relevant Pages

  • Re: Newbie needs help getting user input
    ... to this type of language, ... Whoops, too slow. ... And I had some detritus stuck to the front of that ... file.puts("goodbye venus") ...
    (comp.lang.ruby)
  • Re: Scandal Fallout
    ... involved and the effect it will have on gaming? ... Just in case you just got back from Mars, ... Whoops, try this one: http://tinyurl.com/2rz6u9 ... It's eveywhere! ...
    (alt.vacation.las-vegas)