Home > Guides > Programming > Windows Programming

Toggle Open Guide Table of ContentsGuide Contents

Close Table of ContentsGuide Contents

Close Table of Contents

Sorting a Large Text File

Last updated Jun 6, 2008.

In the previous section, I showed how to sort a text file that you could read entirely into memory. As useful as that is, often you’ll encounter a file that is larger than your available memory. This is especially true if you’re running on a 32-bit system because those systems are limited to an absolute maximum of 4 gigabytes of virtual memory, and the memory available to user programs is almost certainly less: probably 3 gigabytes. How, then, do you sort a 20 gigabyte file?

Related Resources

Emily Nave#TuesdayTrivia: WindowsRT, Tiles and Charms...Oh My! Win "Building Windows 8 Apps with C# and XAML" eBook by Jeremy Likness
By Emily NaveNovember 6, 2012Comments
Software developers know the thing you can count on in your career is change. Microsoft is redefining the way apps are developed -- are you ready to get on board?

Rachel BaylessInformIT's 17 Days of Giveaways
By Rachel BaylessJuly 3, 2012Comments

Get ready for a month full of giveaways. From July 9 through the end of the month, InformIT will be having 17 days of giveaways. Each week has a theme to make sure that there’s something YOU will be excited to win!

Emily Nave#TuesdayTrivia: Spotlight on WP7 (Win a copy of Sams Teach Yourself Windows Phone 7 Application Development)
By Emily NaveMay 2, 2012Comments
These days, what CAN'T a smartphone do? Microsoft is putting their own spin on things to help you experience "life in motion" when using your device. Instead of containing static application icons, the re-imagined Start screen features live Tiles showing real-time content updates.

See More Blogs