From: Adam Kennedy Date: 2013-01-16T23:07:46+09:00 Subject: Error: File not found. Hello guys and gals. This has been bugging me for three hours! I keep receiving the error: File not found. Even though I have placed it in the correct location. I have no idea why it is doing it as I feel it should be working. Here is the code: #!/media/Apache/ruby/bin/ruby #!/usr/local/bin/ruby #usr_array = File.open("../logs/usernames_log", "r").read.split("\n") Culprate = File.open("../products/culprate.txt", "r").read.split("\n") puts "Content-type: text/html\n\n" puts "" puts "" puts "Culprate Nightmares in reality" puts "" puts "" puts "

Name : Culprate [0]

" puts "

Description : Culprate [1]

" puts "

Price : Culprate [2]

" puts "

Item Number : Culprate [3]

" puts "" puts "" And the error: 5:in `initialize': No such file or directory - ../products/culprate.txt (Errno::ENOENT) The user_array does exactly the same thing in another script and it has been working perfectly. Hope someone can help! Thanks Adam K -- Posted via http://www.ruby-forum.com/.