read byte

This is a discussion on read byte within the C++ Programming forums, part of the General Programming Boards category; okay! ı want to read byte from file than ı calculate byte^1 and ı write it to new file.. how ...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    44

    read byte

    okay! ı want to read byte from file than ı calculate byte^1 and ı write it to new file.. how can ı do this??

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    First you need to learn how to use an fstream (or an older C file function if you really want to go there): http://www.cppreference.com/cppio/index.html

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fscanf function won't read my float value...?
    By qpsnhalfs in forum C Programming
    Replies: 8
    Last Post: 07-07-2009, 11:01 PM
  2. Noob Q: How to read a value of a byte in binary?
    By Hitsuin in forum C++ Programming
    Replies: 2
    Last Post: 06-11-2009, 02:46 PM
  3. bytes lost with partial read in UDP
    By mynickmynick in forum Networking/Device Communication
    Replies: 3
    Last Post: 03-31-2009, 02:06 AM
  4. Newbie sockets question/problem
    By (Slith++) in forum Networking/Device Communication
    Replies: 6
    Last Post: 12-05-2007, 11:23 PM
  5. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM

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