Search Tools Links Login

File Read-Write Class

Posted: 2019-09-06
By: Pallab
Viewed: 194

Filed Under:

VB6 Classes, VB6 Files and I/O, VB6 Code Cache

Title Uploaded Size
PCCFile.zip 9/6/2019 7:51:32 AM 5,200

It's a simple VB Class that can be used to write to or read from a sequential file.

You can create a new file, or can add text to an existing file using the WriteToFile method. the WriteMode Property determines whether to add or create a new file. The ReadFromFile method returns the text of the file, also sets the FileText property of text array with each line of File Text.

A sample test form is included with the project. Trying with its properties and methods will give you a better understanding.

Special Instructions

This code originally appeared on AndreaVB.com, and has been republished here with the permission of Andrea Tincani.


Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.