: : Hi, I am new to Visual Basic and currently, I need to do a small software, which has a Open button and a textbox. So when I press the open button, it is suppose to open the open dialog box for users to select the text(log) files in C: to open. Then when the user open it, the contents will be viewed on the textbox. Does anyone has a code or solution for this, any help will be greatly appreciated. Thanks.
Dim iFile as integer, strLog as string, FileName as string
: iFile = FreeFile()
: FileName = "C:\logFile.log"
: Open FileName For Binary Access Read As #iFile
: strLog = Space(FileLen(FileName))
: Get #iFile, , strLog
: Close #iFile
: There exists several ways to get text from file... this is one of them
: Pavlin II[/size]
: Don't take life too seriously anyway you won't escape alive from it!