From: Chris Gehlker Date: 2002-02-27T00:32:11+09:00 Subject: Trouble with opening files I just can't wrap my head around why this little program doesn't work: #!/usr/bin/env ruby $stdout.sync= true File.open("~/ruby/sample/testFile", "r") a = testFile.gets puts a It says: TestAFile.rb:3:in `open': No such file or directory - "~/ruby/sample/testFile" (Errno::ENOENT) from TestAFile.rb:3 but: [dslstat473:~/ruby/sample] chrisg% cat testFile Hello World! [dslstat473:~/ruby/sample] chrisg% As always, Thanks for helping. -- Tact is the ability to describe others as they see themselves. -Abraham Lincoln, 16th president of the U.S (1809-1865)