Subject: Re: Filehandling Problem
From: Christian Kerth <christian.kerth dynamicmedia.at>
Date: Mon, 25 Feb 2008 17:57:15 +0900
References: 292402
In-reply-to: 292402
Christian Kerth wrote:
Forgot to close the File...
....damn! ;-)
> loop do
>
> f1 = File.new(Dir.getwd+"/process1","w").flock(File::LOCK_UN) do |f|
> f.puts "process1"
> end
>
> sleep 60
>
> end
--
Posted via http://www.ruby-forum.com/.