Created
January 10, 2020 05:05
-
-
Save rozek/56d1b91c1d959d02a4e27b4213f35569 to your computer and use it in GitHub Desktop.
Bangle.js: determines the length of a file
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
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