Click here to Skip to main content
15,902,635 members
Home / Discussions / C#
   

C#

 
AnswerRe: How Do I Write A "Binary" File? Pin
Spacix One7-May-08 10:32
Spacix One7-May-08 10:32 
AnswerRe: How Do I Write A "Binary" File? Pin
GuyThiebaut7-May-08 10:37
professionalGuyThiebaut7-May-08 10:37 
QuestionRe: How Do I Write A "Binary" File? Pin
That Asian Guy7-May-08 10:40
That Asian Guy7-May-08 10:40 
AnswerRe: How Do I Write A "Binary" File? Pin
GuyThiebaut7-May-08 10:47
professionalGuyThiebaut7-May-08 10:47 
GeneralRe: How Do I Write A "Binary" File? Pin
PIEBALDconsult7-May-08 11:09
mvePIEBALDconsult7-May-08 11:09 
GeneralRe: How Do I Write A "Binary" File? Pin
GuyThiebaut7-May-08 11:12
professionalGuyThiebaut7-May-08 11:12 
AnswerRe: How Do I Write A "Binary" File? Pin
Spacix One7-May-08 10:54
Spacix One7-May-08 10:54 
AnswerRe: How Do I Write A "Binary" File? Pin
PIEBALDconsult7-May-08 11:00
mvePIEBALDconsult7-May-08 11:00 
That Asian Guy wrote:
a "binary format"


As in "one of an infinite variety of binary formats". Word uses one binary format, Excel uses another, etc. (and even that's simplified).

Even your example shows that simply saying "saving a regular text file" gives very little information on the format of the data: CSV, XML, and HTML are all "text files".

The difference between text and binary files (in essence) is that if I have a (one byte) numeric value 1 and store it in a text file, the actual value written out (after a ToString) is 49 (the ASCII code of the character '1'); but with a binary file I can write out the value 1 directly.

This can save space because saving the string "123" to a text file requires three bytes, whereas saving the numeric value 123 requires only one byte.


There are usually other differences as well, most notably the translation between NewLine and CarriageReturn/LineFeed, but those tend to be platform-specific.
GeneralRe: How Do I Write A "Binary" File? Pin
That Asian Guy7-May-08 11:16
That Asian Guy7-May-08 11:16 
QuestionSaving/Loading settings from Windows Service Pin
jchalfant7-May-08 9:48
jchalfant7-May-08 9:48 
AnswerRe: Saving/Loading settings from Windows Service Pin
jchalfant8-May-08 3:05
jchalfant8-May-08 3:05 
QuestionWaiting for other threads Pin
Roger Alsing7-May-08 8:56
Roger Alsing7-May-08 8:56 
AnswerRe: Waiting for other threads Pin
Gareth H7-May-08 9:03
Gareth H7-May-08 9:03 
GeneralRe: Waiting for other threads Pin
Roger Alsing7-May-08 10:08
Roger Alsing7-May-08 10:08 
AnswerRe: Waiting for other threads Pin
User 66587-May-08 9:03
User 66587-May-08 9:03 
AnswerRe: Waiting for other threads Pin
Broken Bokken7-May-08 9:19
Broken Bokken7-May-08 9:19 
GeneralRe: Waiting for other threads Pin
Roger Alsing7-May-08 10:06
Roger Alsing7-May-08 10:06 
GeneralRe: Waiting for other threads Pin
Spacix One7-May-08 10:35
Spacix One7-May-08 10:35 
GeneralRe: Waiting for other threads Pin
Roger Alsing7-May-08 11:12
Roger Alsing7-May-08 11:12 
GeneralRe: Waiting for other threads Pin
GuyThiebaut7-May-08 10:51
professionalGuyThiebaut7-May-08 10:51 
GeneralRe: Waiting for other threads Pin
Spacix One7-May-08 11:01
Spacix One7-May-08 11:01 
QuestionLooking for HELPFUL information on my event log issues Pin
LongRange.Shooter7-May-08 7:25
LongRange.Shooter7-May-08 7:25 
AnswerRe: Looking for HELPFUL information on my event log issues [modified] Pin
DaveyM697-May-08 8:57
professionalDaveyM697-May-08 8:57 
QuestionCannot create an instance of the abstract class or interface 'Excel.Application Pin
Dominic Burford7-May-08 5:14
professionalDominic Burford7-May-08 5:14 
AnswerRe: Cannot create an instance of the abstract class or interface 'Excel.Application Pin
Giorgi Dalakishvili7-May-08 5:21
mentorGiorgi Dalakishvili7-May-08 5:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.