Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Sub EncryptFile(file)
  2. Set FSO=CreateObject("Scripting.FileSystemObject")
  3. Set readf=FSO.OpenTextFile(file,1)
  4. c=readf.ReadAll
  5. readf.Close()
  6. Set readf=Nothing
  7. 'MsgBox only shows the first 4 characters of the file. ("ÿØÿà")
  8. 'Does ReadAll stop its reading when the character is unreadable for it?
  9. 'n=MsgBox(c,"")
  10. '^^^^^ Result: ÿØÿà
  11. '...more below, but no longer needed for the question
  12. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement