| View previous topic :: View next topic |
| Author |
Message |
phillipm
Joined: 15 Mar 2006 Posts: 4
|
Posted: Wed Mar 15, 2006 3:16 pm Post subject: [HELP] read txt file + resources |
|
|
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 |
|
 |
danzel
Joined: 04 Nov 2005 Posts: 182
|
Posted: Wed Mar 15, 2006 3:22 pm Post subject: |
|
|
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 |
|
 |
phillipm
Joined: 15 Mar 2006 Posts: 4
|
Posted: Wed Mar 15, 2006 3:26 pm Post subject: nope |
|
|
Nope, I am not doing this in python, (although python does rock).
I am doing this in c++ with the pspsdk. |
|
| Back to top |
|
 |
phillipm
Joined: 15 Mar 2006 Posts: 4
|
Posted: Thu Mar 16, 2006 9:59 am Post subject: ? |
|
|
| does anybody have a simple read from txt file function? |
|
| Back to top |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
|
| Back to top |
|
 |
phillipm
Joined: 15 Mar 2006 Posts: 4
|
Posted: Thu Mar 16, 2006 10:11 am Post subject: uh |
|
|
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 |
|
 |
dsn

Joined: 09 Nov 2005 Posts: 47 Location: Indianapolis, Indiana, USA
|
|
| Back to top |
|
 |
|