Thread: File Streams or File Descriptors?

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    13

    File Streams or File Descriptors?

    Id like to know what are the major advantages on using one or the other? In other words what makes them differ and why this difference is necessary ?

  2. #2
    Registered User slingerland3g's Avatar
    Join Date
    Jan 2008
    Location
    Seattle
    Posts
    603
    I think this may help:

    File descriptors:
    File descriptor - Wikipedia, the free encyclopedia

    Note: pay attention to the use of those terms as in FILE *, the file handle and file descriptors are not interchangeable.


    As far as your stream that can be conceived as the actual data stream from the device the File descriptor/handle is pointed towards to read in the raw data.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  3. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  4. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM