Skip to content

Instantly share code, notes, and snippets.

@rozek
Created January 10, 2020 05:05
Show Gist options
  • Save rozek/56d1b91c1d959d02a4e27b4213f35569 to your computer and use it in GitHub Desktop.
Save rozek/56d1b91c1d959d02a4e27b4213f35569 to your computer and use it in GitHub Desktop.
Bangle.js: determines the length of a file
const Storage = require('Storage');
let readText = Storage.read('4testing');
if (readText == null ) {
print('File does not exist');
} else {
print('File contains ' + Storage.read('4testing').length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment