Nathan Christie wrote: > Maybe something like this: > > ie = IE.start( "http://serverName/BackgroundChecker.ext" ) > > myFile = File.new( "C:\\names\wanted.txt", "r" ) > This line has a subtle but nasty syntax error. This is correct:
myFile = File.new( "C:\\names\\wanted.txt", "r" ) Or you can use one of these forms myFile = File.new( 'C:\names\wanted.txt', 'r' ) myFile = File.new( "C:/names/wanted.txt", "r" ) As a general rule, I avoid using double-quotes unless i know that i need them. Single-quotes are "more literal", whereas there are a number of characters that have special meanings when included in double-quotes (esp \ and #). In other words, i would use this: myFile = File.new( 'C:\names\wanted.txt', 'r' ) Bret _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
