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 

File operations help

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



Joined: 22 Jan 2007
Posts: 23

PostPosted: Wed Apr 04, 2007 2:10 am    Post subject: File operations help Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Apr 04, 2007 3:53 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Wed Apr 04, 2007 4:23 am    Post subject: Reply with quote

Quote:
I've never worked with file I/O

Wow, it's the first thing i learned to do with C....
Back to top
View user's profile Send private message
pj1115



Joined: 22 Jan 2007
Posts: 23

PostPosted: Wed Apr 04, 2007 5:42 am    Post subject: Reply with quote

^^ You mean you never did a hello world? :p
Back to top
View user's profile Send private message
shell



Joined: 03 Apr 2007
Posts: 7
Location: NYC

PostPosted: Wed Apr 04, 2007 5:57 am    Post subject: Reply with quote

cout IS a stream.... thats why its in iostream.h -.- lol
Back to top
View user's profile Send private message Visit poster's website AIM Address
pj1115



Joined: 22 Jan 2007
Posts: 23

PostPosted: Wed Apr 04, 2007 6:01 am    Post subject: Reply with quote

^ Didn't understand that...
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Wed Apr 04, 2007 6:09 am    Post subject: Reply with quote

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
View user's profile Send private message
jblaze2201



Joined: 05 Apr 2007
Posts: 3

PostPosted: Thu Apr 05, 2007 12:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
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