hey guys i made a program in vb that gets information from a text file when a number is entered, but when i use inno to make the setup program it cant find the files to read.
the code is like thisVB Code:
If Text1.Text = "1" Then Text2.Text = "" iFileNo = FreeFile 'open the file for reading Open "C:\WINDOWS\Desktop\History Helper\Backup\1.txt" For Input As #iFileNo 'change this filename to an existing file! (or run the example below first) 'read the file until we reach the end Do While Not EOF(iFileNo) Input #iFileNo, sFileText 'show the text (you will probably want to replace this line as appropriate to your program!) Text2.Text = Text2.Text & sFileText Loop 'close the file (if you dont do this, you wont be able to open it again!) Close #iFileNo End If
Can anyone help? Thanks




Reply With Quote