I've written a MobileSubstrate tweak that writes text to a plain-text file. I'm trying to find a way to import the file contents into a Javascript variable to be processed by a Wallpaper/Widget.html file.

The data being read is, at most, 3-4 bytes. It's just a number -- there's no massive data reading or arrays necessary.

For the life of me, I can't get this to work.. any ideas?