From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: newbie question:Writing a structure to a file Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: <3ei5lsg2hnrprkpehcd9t5jdfscnq551na@4ax.com> References: <3952C4BE DOT C9D570E9 AT cue DOT satnet DOT net> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 30 X-Trace: /ba9QYdS8pSsPpiRZSgEsIKKKH5i1LwJ+wwGa28A6zSufnxnPnEOm8cQ58T/UqoUkgsPLTlAK3eW!OdQJ2GHEZ/L8VT3lFXWBoMZEyZq/XHVaFx5EtwXbam5ju2uFAYwCwpmLwcMoEW2GXJoc4UvHnKsq!n5M= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Fri, 23 Jun 2000 02:24:27 GMT Distribution: world Date: Fri, 23 Jun 2000 02:24:27 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Thu, 22 Jun 2000 21:00:30 -0500, Ronald Patiņo wrote: >Hi, can someone help me with this, can you please point out what my >mistakes are. > >Im trying to write this structure to a file, and then retrive it from >another program, >but i'm having troubles. > >struct db{ > char *url; > char test; >}; > [snip] > >Please help me to find out what am I doing wrong. 1. What error are you getting? 2. Try turning your code into one short, complete program that demonstrates the problem. -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/