| To: | s-news@wubios.wustl.edu |
|---|---|
| Subject: | Interpreting "\" in strings (Splus 2000, Windows 2000) as a directory character |
| From: | Karl Nissen <karl.nissen@anu.edu.au> |
| Date: | Thu, 21 Jun 2001 09:09:51 +1000 |
Morning,I'm reading a string from a file using scan(). The file contains a typical DOS/Window directory string: "D:\datasets\geog3009\fred.dat" When this is read into Splus using scan(), the back slashes are removed: "D:datasetsgeog3009fred.dat"This is consistent with the use of the backslash as an escape character in the UNIX world. Is there a simple way to tell scan(), or Splus, to interpret the single backslash as a directory character, rather than an escape character, so the string is not modified? Thanks, Karl |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Formatting with Leading Zeroes, Bill . Venables |
|---|---|
| Next by Date: | Programming position in environmental research, Jack Lewis |
| Previous by Thread: | Formatting with Leading Zeroes, Mike Prager |
| Next by Thread: | Re: Interpreting "\" in strings (Splus 2000, Windows 2000) as, Prof Brian D Ripley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |