I am using simple txt files in a folder to hold info, not a lot but approx 50 seperate files, to read them into a text box via a list box I am doing this:
Dim sTemp As String
Dim SelectedItem As String
Dim WorkDirectory
WorkDirectory = App.Path & "\files\"
SelectedItem = List1.Text
txtPrep = ""
Open "" & WorkDirectory & "" & SelectedItem & ".txt" For Input As #1
While Not EOF(1)
Line Input #1, sTemp
txtPrep = UCase(txtPrep + sTemp & vbCrLf)
Wend
Close #1
My question: Is there a way to stop users from simply copying them from the app folder? I know you can use resource files to embed avi and images, so is there a method to somehow embed these files so if a user browses to the program folder, they won't see them?
Any thoughts or views?
Dim sTemp As String
Dim SelectedItem As String
Dim WorkDirectory
WorkDirectory = App.Path & "\files\"
SelectedItem = List1.Text
txtPrep = ""
Open "" & WorkDirectory & "" & SelectedItem & ".txt" For Input As #1
While Not EOF(1)
Line Input #1, sTemp
txtPrep = UCase(txtPrep + sTemp & vbCrLf)
Wend
Close #1
My question: Is there a way to stop users from simply copying them from the app folder? I know you can use resource files to embed avi and images, so is there a method to somehow embed these files so if a user browses to the program folder, they won't see them?
Any thoughts or views?