VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Read & load a text file using this code. Useful in installation programs.

by Fortunato Estorgio Jr (1 Submission)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 2nd October 2007
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Read & load a text file using this code. Useful in installation programs.

API Declarations


'For More info visit my site: http://www.geocities.com/for2not2

Rate Read & load a text file using this code. Useful in installation programs.



'http://www.geocities.com/for2not2

Private Sub Form_Load()
    Msgbox
End Sub

Public Function LoadFile(nFilename as String) as String
    Dim fso as New Scripting.FileSystemObject
    Set hh = fso.OpenTextFile(nFilename, ForReading, False, Tristate as Default)
    dd = hh.ReadAll
    hh.Close
    LoadFile = dd
End Function

End Function

Download this snippet    Add to My Saved Code

Read & load a text file using this code. Useful in installation programs. Comments

No comments have been posted about Read & load a text file using this code. Useful in installation programs.. Why not be the first to post a comment about Read & load a text file using this code. Useful in installation programs..

Post your comment

Subject:
Message:
0/1000 characters