| View previous topic :: View next topic |
| Author |
Message |
pj1115
Joined: 22 Jan 2007 Posts: 23
|
Posted: Wed Apr 04, 2007 2:10 am Post subject: File operations help |
|
|
Hey
I was just wondering if anyone here was willing to help me with some code samples.
What I wanted to do was:
- Be able to open up a file and cross-reference its contents (let's say 1 character, such as 1) with another (that reads 2) and then do something if it's lower.
- Download a complete file from wifi to the memory stick.
I've never worked with file I/O or wifi before so some help, or even better, some sample code would do me a world of good and help me to increase my currently less-than-fantastic coding skills.
Thanks. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed Apr 04, 2007 3:53 am Post subject: |
|
|
The first is in the SDK docs. If you need more help on IO that the docs provide, you aren't ready to be programming the PSP. Take a few more computer classes.
http://psp.jim.sh/pspsdk-doc/
The second is in the old threads - just search on wget and curl. With those terms, you should be able to find the info yourself.
Rememeber, this site isn't here to help you increase your "less-than-fantastic coding skills," it's to get already "up-to-snuff" programmers going on PS2/PSP/PS3 programming. |
|
| Back to top |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Wed Apr 04, 2007 4:23 am Post subject: |
|
|
| Quote: | | I've never worked with file I/O |
Wow, it's the first thing i learned to do with C.... |
|
| Back to top |
|
 |
pj1115
Joined: 22 Jan 2007 Posts: 23
|
Posted: Wed Apr 04, 2007 5:42 am Post subject: |
|
|
| ^^ You mean you never did a hello world? :p |
|
| Back to top |
|
 |
shell
Joined: 03 Apr 2007 Posts: 7 Location: NYC
|
Posted: Wed Apr 04, 2007 5:57 am Post subject: |
|
|
| cout IS a stream.... thats why its in iostream.h -.- lol |
|
| Back to top |
|
 |
pj1115
Joined: 22 Jan 2007 Posts: 23
|
Posted: Wed Apr 04, 2007 6:01 am Post subject: |
|
|
| ^ Didn't understand that... |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Wed Apr 04, 2007 6:09 am Post subject: |
|
|
this thread is going nowhere
pj: read multiple books on programming in C/C++
and please try everything you learn with a test simple command
shell app on windows or linux and just practice practice ...just like
the rest of us ...and read articles and ebooks and whatnot
this site is not here to hold your hand in the basics _________________ 10011011 00101010 11010111 10001001 10111010 |
|
| Back to top |
|
 |
jblaze2201
Joined: 05 Apr 2007 Posts: 3
|
Posted: Thu Apr 05, 2007 12:54 pm Post subject: |
|
|
also try doing the tutorials here. They show you how to open and read the contents of a file.
Youll then need to read up on arrays, and strings. I think if you open both files and read the contents into 2 arrays then compare them you will accomplish what ya need. |
|
| Back to top |
|
 |
|