Re: fopen assistance requested.



In article <ef5c20a.-1@xxxxxxxxxxxxxxxxxxxxxxx>,
David Wilson <dervish13@xxxxxxxxx> wrote:

I want to use fopen to:

1. Open a file that doesn't exist, therefore creating it,
2. Open this file in a different directory than the working
dierectory.

Example:
fopen('output01.txt') and I want the path to be
c:\ ... \work\results\currentproject\output.txt

My question is "How do I declare what directory I want to open the
new file in?" that is the syntax I have found for fopen doesn't
include the path.

fopen('c:\...\work\results\currentproject\output.txt', 'w');

But I didn't think ... was a valid directory name in Windows.
--
Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us. -- Ecclesiastes
.