coverting text t binary files

This is a discussion on coverting text t binary files within the C++ Programming forums, part of the General Programming Boards category; I was wondering how do you go about converting a text file to a binary file?...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    27

    coverting text t binary files

    I was wondering how do you go about converting a text file to a binary file?

  2. #2
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    IS it possible to read the text data and then output the data to a binary by writing actual bytes?

  3. #3
    Unregistered
    Guest
    yes.use an ifsteam to read the text file, then use an ofstream to "simultaneously write the material to a binary file with ios::binary.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. Binary files
    By Lionmane in forum C Programming
    Replies: 35
    Last Post: 08-25-2005, 01:56 PM
  3. Reading Text files
    By AmazingRando in forum C++ Programming
    Replies: 1
    Last Post: 09-07-2003, 08:30 PM
  4. text files & notepad problem
    By bigtamscot in forum C Programming
    Replies: 2
    Last Post: 05-01-2003, 04:41 PM
  5. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 09:45 PM

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