Urgent...Reading files in C

This is a discussion on Urgent...Reading files in C within the C Programming forums, part of the General Programming Boards category; Hi friends, I've one big doubt. i know something in file handling in C. I can read the file byte-by-byte. ...

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    3

    Exclamation Urgent...Reading files in C

    Hi friends,
    I've one big doubt. i know something in file handling in C. I can read the file byte-by-byte. But the doubt is how can i read the file in bit-by-bit manner. Is there any special fns or any shortcut methods? Pls help me regarding this.


    Thanks and Regards,
    Ashok Kumar.P.S.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    No there isn't.
    You read bytes from the file, then extract the bits yourself.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    Oh, and read this before you profess urgency next time
    http://cboard.cprogramming.com/annou...ouncementid=51
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. reading files
    By hiya in forum C++ Programming
    Replies: 7
    Last Post: 05-21-2005, 11:40 AM
  2. Reading data from consecutively named files
    By a1pro in forum C Programming
    Replies: 10
    Last Post: 04-15-2005, 01:48 AM
  3. A little help reading from files...
    By Invincible in forum C++ Programming
    Replies: 4
    Last Post: 04-03-2002, 09:43 AM
  4. problem reading files in C
    By angelfly in forum C Programming
    Replies: 9
    Last Post: 10-10-2001, 11:58 AM
  5. Need Advice in reading files
    By jon in forum C Programming
    Replies: 4
    Last Post: 10-07-2001, 07:27 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21