Click here to Skip to main content
15,886,063 members
Articles / Desktop Programming / MFC

XReverse - Reverse a text file using memory-mapped files

Rate me:
Please Sign up or sign in to vote.
4.60/5 (8 votes)
14 May 2003CPOL5 min read 101.9K   1.4K   25  
XReverse reverses a text file line-by-line, so that what was the last line becomes the first line. This is useful when you want to view server logs, for example, with the latest line displayed at the top. Memory-mapped files helps to make XReverse very fast.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Hans Dietrich Software
United States United States
I attended St. Michael's College of the University of Toronto, with the intention of becoming a priest. A friend in the University's Computer Science Department got me interested in programming, and I have been hooked ever since.

Recently, I have moved to Los Angeles where I am doing consulting and development work.

For consulting and custom software development, please see www.hdsoft.org.






Comments and Discussions