Alex Young
4/12/2007 5:46:00 PM
Peter Bailey wrote:
> Hello,
> I'm going nuts with a simple error. All I want to do is open a file and
> stick a number in it. The error is referring to this line below. In the
> error, it's picking up all the variable names correctly.
>
> ...
>
> File.open("E:/pagecounts/#{$budget}/tmports}/#{pstxtfile}", "w") { |f|
> f.print "#{$pages.to_i}\n" }
>
> ...
>
> I get this error:
>
> C:/Users/pb4072.INTDOM/Documents/scripts/RUBY/tmports.rb:70:in
> `initialize': No
> such file or directory -
> E:/pagecounts/budget4/tmports}/TMEGT_April_30_2007.pstxt (Errno::ENOENT)
^
|
Is '}' a legal character in Windows paths?
--
Alex