forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[HELP] read txt file + resources

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
phillipm



Joined: 15 Mar 2006
Posts: 4

PostPosted: Wed Mar 15, 2006 3:16 pm    Post subject: [HELP] read txt file + resources Reply with quote

So I have started programming, and it has been going well.

I am currently working on a Sudoku game, which will include multiple levels, music, timer, and other fun stuff.

I want to be able store and read my puzzles in txt files, and then retreived them into a 2d array. can someone post a script that can do this. thanks.

Also, I can't seem to find source code that I can look at and build off of. I know it is out there. I was wondering if anyone knew of anywhere. it would be awsome to find something like the python cookbook(http://aspn.activestate.com/ASPN/Python/Cookbook/) for the psp homebrew scene.

thanks
phillip
Back to top
View user's profile Send private message
danzel



Joined: 04 Nov 2005
Posts: 182

PostPosted: Wed Mar 15, 2006 3:22 pm    Post subject: Reply with quote

Are you coding this in python?
If so then standard python file input/output should work (I haven't tryed it myself, but thats the general gist I've got)
Back to top
View user's profile Send private message
phillipm



Joined: 15 Mar 2006
Posts: 4

PostPosted: Wed Mar 15, 2006 3:26 pm    Post subject: nope Reply with quote

Nope, I am not doing this in python, (although python does rock).
I am doing this in c++ with the pspsdk.
Back to top
View user's profile Send private message
phillipm



Joined: 15 Mar 2006
Posts: 4

PostPosted: Thu Mar 16, 2006 9:59 am    Post subject: ? Reply with quote

does anybody have a simple read from txt file function?
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Thu Mar 16, 2006 10:06 am    Post subject: Reply with quote

I would recommend The C Programming Language
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
phillipm



Joined: 15 Mar 2006
Posts: 4

PostPosted: Thu Mar 16, 2006 10:11 am    Post subject: uh Reply with quote

uh, that is a kinda old book.
I just need an example of a function someone has used to read a file.
please
Back to top
View user's profile Send private message
dsn



Joined: 09 Nov 2005
Posts: 47
Location: Indianapolis, Indiana, USA

PostPosted: Thu Mar 16, 2006 10:37 am    Post subject: Reply with quote

I think Drakonite is trying to say that this is pretty basic stuff... but you might try taking a look at this: http://www.mrx.net/c/index.html

This book is worth reading too: http://www.oreilly.com/catalog/pcp3/
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group