Fwd: Re: Re: Filename as Function Argument"
- To: mathgroup at smc.vnet.net
- Subject: [mg30131] Fwd: Re: [mg30127] Re: Filename as Function Argument"
- From: jmt <jmt at agat.net>
- Date: Tue, 31 Jul 2001 04:27:07 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On MS OSes, since \ is an escaping character, you need to write filenames as, for instance : "C:\\dir1\\dir2\\myFile.txt" On Monday 30 July 2001 03:26, you wrote: > With the similar problem of "filename as argument" I've crossed > when I used a long path for file of kind "C:\My Documents\1234.txt" > (I'm not sure that the case was axactly as this...): > > during the session it's all OK, > > BUT WHEN I SAVED notebook AND THEN RETURNED TO IT > INSTEAD OF MY "FILENAME' I've got SOMETHING ELSE?! > > I guessed that here backslash, \, was involved and so > I first copied the file into > C:\Program Files\Wolfram\Mathematica\4.0\1234.txt, > so that I need only use ReadList["1234.txt"]. > > I'm not sure that this is the case but may be it is clear for our dear > Mathematica Gurus (I mean dear Mathematica, and dear Gurus!) > what is the matter? > > Zak F. Seidov -------------------------------------------------------