Zophar's Message Domain

Go Back   Zophar's Message Domain > General Chat > Tech Talk

Reply
 
Thread Tools Display Modes
Old 09-27-2004, 02:55 AM   #1
DOSphantom
Junior Member
 
Join Date: Sep 2004
Posts: 7
Default fopen() stuff

<img src=smilies/2gunsfiring_v1.gif> i need some
more info on the c fopen() function
no one has stuff on it at lesst not enuf<img src=smilies/banghead.gif><img src=smilies/cry.gif>
i allso need some stuff like the gcc code to fopen()<img src=smilies/thumb.gif>
<img src=smilies/retard.gif> =<img src=smilies/werd.gif>

<P ID="signature"></P>
DOSphantom is offline   Reply With Quote
Old 09-27-2004, 03:01 AM   #2
MooglyGuy
Senior Member
 
Join Date: Mar 2002
Location: Albany, NY
Posts: 4,014
Send a message via ICQ to MooglyGuy Send a message via AIM to MooglyGuy Send a message via Yahoo to MooglyGuy
Default Re: fopen() stuff

> i need some
> more info on the c fopen() function
> no one has stuff on it at lesst not enuf
> i allso need some stuff like the gcc code to fopen()

1) Learn to type.
2) Don't use so goddamn many smileys.
3) Learn to use Google.
4) If you want the code that glibc uses for fopen, then maybe you should... GASP... download the source to GCC! OMG!
MooglyGuy is offline   Reply With Quote
Old 09-27-2004, 03:11 AM   #3
mFC
Senior Member
 
Join Date: Oct 2003
Posts: 1,178
Default Re: fopen() stuff

man fopen
gonna have to agree with moogle on this one. if you dont know where to find info on fopen, let alone use it, you need more help than you think.

Chris

<P ID="signature"><center></center></P>
mFC is offline   Reply With Quote
Old 09-27-2004, 03:13 AM   #4
DOSphantom
Junior Member
 
Join Date: Sep 2004
Posts: 7
Default Re: fopen() stuff

Ok then let me redo the hole
explantion. I all ready have the source code
on disk I don't know where the fopen()
info is, and if I were to download it would take
to long on my old modem I refuse to update
and have wierd problems doing.
Thank You.

<P ID="signature"></P>
DOSphantom is offline   Reply With Quote
Old 09-27-2004, 03:17 AM   #5
DOSphantom
Junior Member
 
Join Date: Sep 2004
Posts: 7
Default Re: fopen() stuff


<img src=smilies/angryfire.gif>
I know the commands like following:
FILE *file;
fopen("names", option); //option being W,R,A,W+,R+,A+
//names the freaking name

<P ID="signature"></P>
DOSphantom is offline   Reply With Quote
Old 09-27-2004, 03:39 AM   #6
mFC
Senior Member
 
Join Date: Oct 2003
Posts: 1,178
Default Re: fopen() stuff

http://www.rt.com/man/fopen.3.html
this took me five seconds on google. seriously.

Chris

<P ID="signature"><center></center></P>
mFC is offline   Reply With Quote
Old 09-27-2004, 04:38 AM   #7
Disch
Senior Member
 
Join Date: Apr 2001
Posts: 4,387
Default Re: fopen() stuff


FILE* myfile;

myfile = fopen("C:\\Somepath\\somefile.ext","rb"); /* opens file in binary mode with read permission only */

if( myfile == NULL ) /* NULL pointer means file couldn't be opened for some reason */
return 0;

BYTE somebuffer[100];

fread( somebuffer, 1, 100, myfile ); /* read 100 bytes from the file (fills somebuffer with the data) */

fclose( myfile ); /* close the file */

return 1;

<P ID="signature"></P>
Disch is offline   Reply With Quote
Old 09-27-2004, 05:32 PM   #8
DOSphantom
Junior Member
 
Join Date: Sep 2004
Posts: 7
Default Re: fopen() stuff

Im not here to compete in codeing
I've used fopen() many times before.
All I wanted was the code to fopen()
so I could rework it for my text
editer I'm making.

<P ID="signature"></P>
DOSphantom is offline   Reply With Quote
Old 09-27-2004, 05:39 PM   #9
DOSphantom
Junior Member
 
Join Date: Sep 2004
Posts: 7
Default Re: fopen() stuff

> FILE* myfile;
> myfile = fopen("C:\\Somepath\\somefile.ext","rb");
> if( myfile == NULL )
Who cares about the binary options who care
about the full detials to and if your tring a
real C program well your missing stdio.h
and main(). Becouse I know how to use
it just need to find wich directory
the codes in to many dirs.<img src=smilies/angryfire.gif>

<P ID="signature"></P>
DOSphantom is offline   Reply With Quote
Old 09-27-2004, 06:15 PM   #10
Disch
Senior Member
 
Join Date: Apr 2001
Posts: 4,387
Default Asshole

I hope no one answers your question ever. Not only did you ask it poorly but you explode at people when they're trying to give you what they think you're looking for.

I'll be sure not to try and help you in the future... since it only seems to piss you off.

<P ID="signature"></P>
Disch is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:14 AM.

Contact Us - Zophar's Domain - Archive - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.