From: "ANDERS PEDERSEN" Newsgroups: comp.os.msdos.djgpp References: <789k2d$590$2 AT antares DOT lu DOT erisoft DOT se> <789uso$a7o$1 AT antares DOT lu DOT erisoft DOT se> Subject: Re: Map file Lines: 23 X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Message-ID: Date: Fri, 22 Jan 1999 17:50:27 +0100 NNTP-Posting-Host: 195.82.204.219 X-Complaints-To: abuse AT get2 DOT net X-Trace: news.get2net.dk 917024208 195.82.204.219 (Fri, 22 Jan 1999 17:56:48 MET DST) NNTP-Posting-Date: Fri, 22 Jan 1999 17:56:48 MET DST Organization: get2net Internet Kunde To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Ok, now i have a code like this: #include int map[100][100]={0,0,1,0,0,2,0,1,1,0.........}; int main { FILE *fp; fp=fopen("map.dat","w"); fwrite(map,90,90,fp); fclose(fp); return 0; } but what if i want more than one integer stored in a file i have 3 map integers: map, item and walk. how should i then write the code? should i make a structure? Anders