VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Read a text file line by line

c23lemon  (1 Submission)   Microsoft Office Apps/VBA   Beginner   Wed 3rd February 2021

Purpose is to open up a text file and read the contents line by line.

Inputs
None.

Assumes
To modify for your use do the following: 1. Replace "folderName" and "fileName" to suit for your requirement. 2. Please make sure that when you define "folderName", that the backslash is included (Ex. C:\Dump\" 3. The variable "inputdata" will hold the current value of the line of text being read. Note: This code will only open the text file and read its contents line by line.

Returns
None.

Side Effects
None.

Rate Read a text file line by line (2(2 Vote))
Read a text file line by line.bas

Read a text file line by line Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters