Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

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

-------------------------------------------------------


  • Prev by Date: SquareFreeQ vs. MoebiusMu
  • Next by Date: Solving linear equations with symbolic RHS
  • Previous by thread: Re: Filename as Function Argument"
  • Next by thread: Re: Filename as Function Argument"