On Thu, Nov 6, 2008 at 2:01 PM, Brett McCoy <[EMAIL PROTECTED]> wrote:
>
> On Thu, Nov 6, 2008 at 7:54 AM, Tamas Marki <[EMAIL PROTECTED]> wrote:
>
[...]
> >> fopen("C:\Users\bmccoy\Music\myfile.txt", "w");
> >
> > Sorry for the nitpick, but you forgot to escape the backslashes (and
> > for newbies it could produce a not too obvious error). The correct way
> > would be:
> >
> > fopen("C:\\Users\\bmccoy\\Music\\myfile.txt", "w");
>
> That's required for Windows paths now? I don't do much Windows
> programming these days, but don't recall having to escape the
> backslashes in the past.

It's a C thing, not a Windows thing: http://c-faq.com/osdep/dospath.html

--
PJH

http://shabbleland.myminicity.com/env

Reply via email to