Search Tools Links Login

Fix Line Endings


This VB5 program can parse large text files reading in a chunk at a time and will replace UNIX Lf chars with Windows CrLf's, or vice-versa.

It uses API to boost performance and is very fast. Demonstrates finding and replacing text that crosses over the chunk boundaries - and is further complicated by the need to access the previous char to avoid replacing a Lf with CrLf if already preceded by a Cr. Uses no VB6 only functions and is just 32k compiled with no compiler optimizations. Includes word list to parse - a tiny file really at 4.5 MB but parses in a blink even in the IDE. Hope someone finds it interesting, or even useful! Happy coding, Rd :)

Original Author: Rde

About this post

Posted: 2020-09-02
By: vb6boy
Viewed: 322 times

Categories

Visual Basic 6

Attachments

FixLineEnds.zip
Posted: 9/2/2020 5:17:32 PM
Size: 1,591,039 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.