🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7233

Re: FILE Problem

#7233
From: Hans Galema
Date: Mon, 07 Mar 2005 11:13
17 lines
1501 bytes
Marco wrote:

>   FILE *file = fopen (".\\Cfg\\CompCod.dat", "w"); 

>   FILE *file = fopen (".\\Cfg\\CompCod.dat", "rt");

> My problem is that if i try to open file on my PC sometimes
> error occours 

Please explain exactly what kind of error. Why must we guess ?

But I think that the file can not be found because
you use relative paths.

Better use absolute paths.

Hans.
Technical Details
Message-ID: <422c37b8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <422c284b$1@newsgroups.borland.com> <422c2ce5@newsgroups.borland.com> <422c3529$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,dd88f23059572aae
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 07 Mar 2005 12:13:17 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: FILE Problem
References: <422c284b$1@newsgroups.borland.com> <422c2ce5@newsgroups.borland.com> <422c3529$1@newsgroups.borland.com>
In-Reply-To: <422c3529$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <422c37b8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1110194104 129.125.201.248 (7 Mar 2005 03:15:04 -0800)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail