Created
March 25, 2020 14:55
-
-
Save Nico-Duduf/64ab5b9dd2cc40aca042ef16d16293a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// la chaine de caractères est dans une variable | |
binAsString; | |
var file = new File('appData/path/to/file.png'); | |
file.encoding = 'BINARY'; | |
if (file.open('w')) | |
{ | |
success = file.write(binAsString); | |
file.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment