X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <470AD3C9.6060000@pacific.net.sg> Date: Tue, 09 Oct 2007 09:05:13 +0800 From: Erich Dollansky User-Agent: Thunderbird 2.0.0.6 (X11/20070826) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: How to write directory address under Cygwin? References: <7 DOT 0 DOT 1 DOT 0 DOT 2 DOT 20071008145536 DOT 0248a870 AT eye DOT usyd DOT edu DOT au> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l9915Spb009115 Hi, Peter Hains wrote: > René Berber computer.org> writes: > >>> Are you sure you need the directory path not the file path? > > I actually need to specify a file within the directory. I wasn't aware that > would make a difference. > > For the record, I do have read/write permission in the directory, and the > directory does exist!! I am executing the program within the ~/SuperHirn/make you cannot define a directory in a C program like this. Take the home directory and then either move with individual 'cwd' calls to the target directory or you create at run-time with strcat the full path and then open the file. > directory and this is where the file I am specifying also resides. I do not know > for sure if this program evens runs under Cygwin, it was meant for UNIX/Linux, > I'm just trying to get it working. > Both described methods work under cygwin, any Unix I know, even Windows itself and FreeBSD. > I tried a few more iterations and nothing wants to work, very frustrating. > > Any more suggestions? Install Linux in a dual boot system?? > You do not need to do things like this just to open a file. Erich -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/