Re: fopen assistance requested.
- From: roberson@xxxxxxxxxxxxxxxxxx (Walter Roberson)
- Date: Fri, 29 Jun 2007 21:49:48 +0000 (UTC)
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
.
- References:
- fopen assistance requested.
- From: David Wilson
- fopen assistance requested.
- Prev by Date: Re: Undefined function or method 'lognrnd' for input arguments of type 'double'.
- Next by Date: Re: Any easy way to find lines of code missing semi-colons (;) at the end?
- Previous by thread: fopen assistance requested.
- Next by thread: Re: fopen assistance requested.
- Index(es):