|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
Convert Text File To Binary hi, i have small problem in C + + there. I have a. txt all that is simple and readable format ascii in notepad and I would copy the contents to a binary file (to be called up to win). I use the following functions: fread and fwrite for access binary ansi_c fgets, fputs, fgetc, fputc access to text To read it well be the same thing but in the opposite direction to regenerate the txt file from the binary. a little help or track? thank you |
#2
| |||
| |||
Re: Convert Text File To Binary hi, use std:: ostream, std:: IStream with good flags. |
#3
| |||
| |||
Re: Convert Text File To Binary I am based on the examples of functions: Code:
|
#4
| |||
| |||
Re: Convert Text File To Binary This program reads a text file, and outputs a matrix or permutation in internal format depending on the input to BinFile (default: P2). If the input file name is '=', input is read from stdin. If no arguments are given, T1 is used as input file and output goes to P2. Here are some examples: Command Conversion zcv T1 -> P2 zcv txt Txt -> P2 zcv txt z1 Txt -> z1 zcv = z1 standard input -> z1 To convert text from a file called `=' you must use input redirection: zcv = binfile < = |
#5
| |||
| |||
Re: Convert Text File To Binary It might seem strange to you, but text files are binary, too. It's the application that treats them differently. For example, if you change the extension from .txt to .bin, the application will not handle it the same. |
![]() |
|
Tags: binary format |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
binary and text conversion java | Ronguor | Software Development | 1 | 14-03-2012 01:24 PM |
Need help to convert a Text file to Excel via VBA Macro | DEvOTeEL | MS Office Support | 1 | 24-02-2012 01:47 PM |
How to convert image text into a text file | Wadee | Windows Software | 5 | 02-12-2010 06:33 PM |
How to convert text file to CSV | Yancy | Tips & Tweaks | 3 | 31-07-2009 05:08 PM |
Convert Hex Value to Date from Binary Reg Key | RobT | Windows Server Help | 4 | 01-04-2005 11:55 AM |