Mail Archives: djgpp/1997/07/22/08:02:36
From: | Jason Harris Persampieri <helgaorg AT cis DOT ufl DOT edu>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: My structures get broken when I fwrite
|
Date: | Thu, 17 Jul 1997 09:03:46 -0400
|
Organization: | UF Department of Computer & Information Science & Engineering
|
Lines: | 19
|
Message-ID: | <33CE1832.1592@cis.ufl.edu>
|
References: | <33C76A7A DOT 15E4 AT swipnet DOT se>
|
NNTP-Posting-Host: | eclipse.cise.ufl.edu
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
> void read_board (map *b, char *fname)
> {
> FILE *f;
>
> f = fopen (fname, "r");
>
> fwrite (b->data, sizeof (my_struct), mapx * mapy, f);
> fclose (f);
> }
>
um, was this typed wrong? or are you actually trying to write into the
file again during the 'read_board'?
Oh, and I guess I should point out (I know someone will) that this isn't
a djgpp question, and should really be posted to a different newsgroup.
Jason Persampieri
(who would really like a game company to give me a title to put here)
- Raw text -