Click here to Skip to main content
15,908,445 members
Home / Discussions / C#
   

C#

 
AnswerRe: Smallest and fastest way to store numeric data in a file [modified] Pin
Luc Pattyn13-Jan-09 16:35
sitebuilderLuc Pattyn13-Jan-09 16:35 
Hi,

a binary file will provide access much much faster than anything text-oriented.
use BinaryWriter/BinaryReader for this.

Warnings with binary files:
- you are responsible for consistent file contents; from the outside, it looks like just a collection of bytes, there is no way to recognize its structure;
- portability is limited to systems that have the exact same data representation; e.g. x86 stores multibyte values in "little-endian" mode (least sighificant byte first), other systems may use
"big-endian" hence not correctly interpret the same file.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

I use ListBoxes for line-oriented text, and PictureBoxes for pictures, not drawings.


modified on Friday, June 10, 2011 12:27 PM

AnswerRe: Smallest and fastest way to store numeric data in a file Pin
PIEBALDconsult13-Jan-09 16:51
mvePIEBALDconsult13-Jan-09 16:51 
AnswerRe: Smallest and fastest way to store numeric data in a file Pin
Guffa13-Jan-09 17:20
Guffa13-Jan-09 17:20 
AnswerRe: Smallest and fastest way to store numeric data in a file Pin
Mark Churchill13-Jan-09 17:42
Mark Churchill13-Jan-09 17:42 
GeneralRe: Smallest and fastest way to store numeric data in a file Pin
Reanalyse13-Jan-09 19:22
Reanalyse13-Jan-09 19:22 
AnswerRe: Smallest and fastest way to store numeric data in a file Pin
CPallini13-Jan-09 22:01
mveCPallini13-Jan-09 22:01 
QuestionObtain All Information from an Ocx [modified] Pin
angral13-Jan-09 14:41
angral13-Jan-09 14:41 
AnswerRe: Obtain All Information from an Ocx Pin
Henry Minute13-Jan-09 16:56
Henry Minute13-Jan-09 16:56 
GeneralRe: Obtain All Information from an Ocx Pin
angral13-Jan-09 18:05
angral13-Jan-09 18:05 
Questionanimations\video Pin
mjmim13-Jan-09 14:39
mjmim13-Jan-09 14:39 
AnswerRe: animations\video Pin
EliottA13-Jan-09 14:45
EliottA13-Jan-09 14:45 
QuestionDatasets / SQL [modified] Pin
CrimeanTurtle200813-Jan-09 13:42
CrimeanTurtle200813-Jan-09 13:42 
AnswerRe: Datasets / SQL Pin
leckey13-Jan-09 14:36
leckey13-Jan-09 14:36 
QuestionAutoresize column width in owner drawn ListView [modified] Pin
CodeBerserker13-Jan-09 12:30
CodeBerserker13-Jan-09 12:30 
QuestionNumber Vaildation Pin
tswright104113-Jan-09 12:26
tswright104113-Jan-09 12:26 
AnswerRe: Number Vaildation Pin
EliottA13-Jan-09 12:38
EliottA13-Jan-09 12:38 
AnswerRe: Number Vaildation Pin
RyanEK13-Jan-09 14:03
RyanEK13-Jan-09 14:03 
AnswerRe: Number Vaildation Pin
PIEBALDconsult13-Jan-09 14:18
mvePIEBALDconsult13-Jan-09 14:18 
AnswerRe: Number Vaildation [modified] Pin
Jon Rista13-Jan-09 14:36
Jon Rista13-Jan-09 14:36 
GeneralRe: Number Vaildation Pin
tswright104114-Jan-09 3:37
tswright104114-Jan-09 3:37 
GeneralRe: Number Vaildation Pin
Jon Rista14-Jan-09 12:05
Jon Rista14-Jan-09 12:05 
QuestionInternet Explorer running an application by file association Pin
bfrank197213-Jan-09 7:29
bfrank197213-Jan-09 7:29 
AnswerRe: Internet Explorer running an application by file association Pin
DaveyM6913-Jan-09 9:32
professionalDaveyM6913-Jan-09 9:32 
GeneralRe: Internet Explorer running an application by file association Pin
bfrank197213-Jan-09 13:58
bfrank197213-Jan-09 13:58 
QuestionReg: Pin
satsumatable13-Jan-09 7:01
satsumatable13-Jan-09 7:01 

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.