Specifying path

on windows…i was trying to do a require(“path to .rb”). how do you say
“c:\my ruby stuff\myprogram.rb”?

On 11/7/07, joey eisma [email protected] wrote:

on windows…i was trying to do a require(“path to .rb”). how do you say “c:\my ruby stuff\myprogram.rb”?

Use forward slashes (/), or double backslashes (\). Backslash is
escape char (used for \n newline, \t tab char, etc. So to obtain the
backslash itself you have to write it twice.

Note: generally it’s best to avoid spaces in paths, but it should work
with them as well.