Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Smaller File Writing

$
0
0
Hi All,
In my current application I'm saving/reading back a lot of data. I'm currently using streamreader/streamwriter to read/write lines of text. It's working, but file sizes are starting to get too big. (100 MB plus)

If I zip the 100MB text file it drops to around 1MB (always ~ 100:1 reduction in size) so I'm sure I can be doing this MUCH better. Better for now is fast execution and small file size.

Does anyone have a suggestion? I've never done binary writing but assume it would create a smaller file.

Data types I'm writing our are integers, doubles, boolean and string.

Thanks,
Nick

Note: these files are written all at once, and then read back later all at once.

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>