binary to ascii


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: binary to ascii

  1. #1
    Join Date
    Jan 2007
    Posts
    1

    binary to ascii

    i have a binary file and a structure (containing int,char variables)
    i have to include my structure in in file and then totally convert it into ASCII file..
    how can i convert it???

  2. #2
    Join Date
    Dec 2003
    Posts
    3,366
    you can write your struct out easily in text, simply use text output on each field instead of writing the struct or its fields in a binary way. The << operator on a file stream is text while .write function call is binary. As for converting your existing file to text, you have to know what it contains to do so. You will have to load it and re-write it in text, based on what the file contains.

Similar Threads

  1. Replies: 2
    Last Post: 02-17-2006, 01:54 PM
  2. Why is this not binary compatible
    By Kip Fryman in forum VB Classic
    Replies: 2
    Last Post: 09-07-2001, 07:19 AM
  3. Registry question: Save and read binary data
    By Paulo Costa in forum VB Classic
    Replies: 0
    Last Post: 07-30-2001, 06:15 PM
  4. High ASCII to standard ASCII
    By Brian Hogan in forum Web
    Replies: 0
    Last Post: 09-14-2000, 05:48 PM
  5. converting an ascii file to a binary file
    By M.S.RamaGopal in forum Java
    Replies: 0
    Last Post: 07-17-2000, 08:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center