Hi Jo,
is this just trying to read a local file? By which I mean, are you planning to write to it as well? The local filesystem isn't persisted across app restart - which is why we use cloudant for persistent storage on bluemix. But if this is trying to read a file that was part of the app you cf pushed into bluemix, then it will be doable, once you figure out the path information.
Off the top of my head, I don't know what path the app gets installed to. Poking around one of my instances, it appears to get installed to ~/app/
You could add an entry to functionGlobalContext within bluemix-settings.js to set the directory name for the Function node to use. You must have already added the fs module to global context to access it from the function node, so you'd have something like:
functionGlobalContext: {
fs: require("fs"),
myDir: __dirname
},
Then, in the function node:
context.global.fs.readFileSync(context.global.myDir+"/filename");
Nick