From: Mehdi Karamnejad Date: 2009-09-08T20:30:14+09:00 Subject: different results with File.exists? when I use a string constant with File.exists? like the following ,it works fine: File.exists?("/home/sepehr") but when I get the string from user: path=gets if File.exists?(path) then ---- ---- end it doesn't work! what's wrong with the string which is typed by the user? -- Posted via http://www.ruby-forum.com/.