From: Alex Young Date: 2007-04-13T02:45:30+09:00 Subject: Re: simple File.open error 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