Path: chuka.playstation.co.uk!news From: "Casaub" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Strings, Files and Such Date: Wed, 25 Nov 1998 10:39:04 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 36 Message-ID: <73gj4a$9ia1@chuka.playstation.co.uk> References: <73edk4$r845@scea> NNTP-Posting-Host: 194.109.93.22 X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 This might be too obvious and not your intention.. but maybe it might help. If you set up a level like: 00000000000030500000200050 11111100001131111000031111 00000100000030000000030001 13111100000030000000030001 03000000000030400000030001 11111111111111111111111111 1 being the floor 2 a lamp 3 stairs 4 the player 5 an enemy you can simply add this to your code as an [][] array I got some sample code for you if you would like JUN. -- Me wrote in message <73edk4$r845@scea>... >As I am a programmer by hobby, I have never taught myself anything about >strings, except for what I need. Well, now I need to read a text file and >parse it on the playstation. Well, there is not fscanf. Does anyone know >how to make a similar function that uses a string loaded into memory (char >*). I need it to define my levels in an easy to edit text file rather than >having to code a level editor (which I am working on) just to test the >playstation side of things. Well, your help would be much appreciated. > >Nathan > >