From: STEPHEN BECKER I V Date: 2004-09-23T13:35:27+09:00 Subject: Directory reading produces differnt files Hello, I am running ruby and exploring the different things i have this code [code] FileTest.file?("Monkey.txt")?s = File.open("Monkey.txt","w+") :s = File.new("Monkey.txt","w+") print File.atime("Monkey.txt"),"\n" print File.ctime("Monkey.txt"),"\n" print File.basename("Monkey.txt"),"\n" print File.dirname("Monkey.txt"),"\n" print File.expand_path("Monkey.txt"),"\n" dir = File.expand_path("Monkey.txt") print File.stat("Monkey.txt"),"\n" print File.split(File.expand_path("Monkey.txt")),"\n" print File.new("Monkey.txt").flock(File::LOCK_UN) files = Dir["*.*"] files.each {|w| print w, " "} [/code] So it just creates a file locally called monkey.txt with nothing going in it. I have the file saved on my desk top c:\documents and settings\iv\desktop\file.rb when i call it from a .bat file (drag the rb file in to the bat) [code for bat] @echo off c:\ruby\bin\ruby.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 pause [/code] It outputs the file contents of c:\documents and settings\iv but if i run it from SciTE it will output the documents on my desktop Is SciTE setting something i don't see? Becker