copying and overwriting a file using file descriptor

A

aki

Hi ,

i have two basic requirement on linux platform . I am using C language
to do this .
1) copying one file to another (assuming i know their file
descriptors)
2) Overwriting a file using it file descriptor .

Please guide.

regards
Aki
 
K

Keith Thompson

aki said:
i have two basic requirement on linux platform . I am using C language
to do this .
1) copying one file to another (assuming i know their file
descriptors)
2) Overwriting a file using it file descriptor .

File descriptors are a Unix concept, not a C concept.

I'm sure the folks over in comp.unix.programmer would be glad to help
you with this. Just to make things easier, give them your instructor's
e-mail address so they can submit their solutions to your homework
assignment directly.

(My apologies if this isn't a homework assignment, but it certainly
looks like one.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top