From: Li Chen Date: 2006-10-23T02:37:15+09:00 Subject: Re: about file format EB wrote: > Try again, I just did the following on my Linux box and > it worked fine: > > $ touch OTI-4.001 > > $ ls OTI-4.001 > OTI-4.001 > > $ irb > irb(main):001:0> File.file?('OTI-4.001') > => true > irb(main):002:0> > > EB Hi, I try different formats and these are what I get: C:\Ruby\self>irb irb(main):001:0> File:file?(ruby.rb) SyntaxError: compile error (irb):1: parse error, unexpected '(', expecting $ File:file?(ruby.rb) ^ from (irb):1 irb(main):002:0> File.file?("ruby.rb") => true irb(main):003:0> File.file?('ruby.rb') => true irb(main):004:0> File.file?("ruby1.rb") => false irb(main):005:0> File.file?('ruby1.rb') => false irb(main):006:0> File.file?("ruby-1.rb") => false irb(main):007:0> File.file?('ruby-1.rb') => false irb(main):008:0> It seems Ruby only see ruby.rb as a file but not ruby-1.rb or ruby1.rb as a file under XP Li -- Posted via http://www.ruby-forum.com/.