Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > copying and overwriting a file using file descriptor

Reply
Thread Tools

copying and overwriting a file using file descriptor

 
 
aki
Guest
Posts: n/a
 
      10-26-2010
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
 
Reply With Quote
 
 
 
 
Keith Thompson
Guest
Posts: n/a
 
      10-26-2010
aki <> writes:
> 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.)

--
Keith Thompson (The_Other_Keith) kst- <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: "Bad file descriptor" in HTTPServer using Multiprocessing. Adam Tauno Williams Python 0 01-15-2010 06:50 PM
"Bad file descriptor" in HTTPServer using Multiprocessing. Adam Tauno Williams Python 0 01-10-2010 07:45 PM
Reading of file by next of map file and by next of file descriptor. =?ISO-8859-2?Q?Miros=B3aw?= Makowiecki C++ 1 07-10-2007 02:46 AM
Overwriting a Access Database using JDBC Tushar Java 20 02-06-2005 08:10 PM
using ofstream to alter file contents WITHOUT overwriting them Stewart C++ 8 11-05-2004 04:46 PM



Advertisments