• Downloading & Installing
• Running
• Examples
Cryptography
• hashSHA256
• hmacSHA256
• hashSHA512
• hmacSHA512
• hashMD5
• hmacMD5
File System
• fileExists
• fileRead
• fileWrite
• folderExists
• unzip
• zip
Networking
• curlExecute
• nsapiExecute
Operating System
• shellExecute
Text Encoding
• base64Decode
• base64Encode
Utilities
• abort / halt / quit
• info
• infoRefresh
• sleep
• stringIndent
• uuidGenerate
Creates a file at the specified location with the specified content.
fileWrite supports an optional third parameter. It's a boolean value, and when it is set to "True," this indicates that the specified content is Base64-encoded. In this case, the content will be decoded before it is written to the file. This is helpful when you want to write binary data (such as images, PDFs, etc).
// Specify the path to the file. var filepath = info.sourceFile.parentNativePath + "/../"; var filename = "suitejs-info.txt" var fileContents = JSON.stringify( info, null, 2 ); // Write the file. fileWrite( filepath + filename, fileContents ); if ( info.error.type != '' ) { writeln( "ERROR: " + info.error.type ); quit; } writeln( "Success!" );
© Copyright 2025 Tim Dietrich. | Legal Info