VB Code:
Dim strjpg As String
Dim strjpgcode As String
Dim strsize As Double
Dim strtarget As String
Dim strcount As String
strjpg = Text1.Text
Open strjpg For Binary As #1
'LOF returns the size of the file you want to copy.
strsize = LOF(1) '20480 'what is this for? why is it significant?
' Input$(LOF(1), 1) returns the entire file into a string
strjpgcode = Input$(LOF(1), 1) 'what is LOF(1),1) ?
strcount = Mid(strjpgcode, 1, strsize)
Close #1
Open strtarget For Output As #1
Print #1, strcount
Close #1