I\'m currently working on a file parsing library in C with emscripten compile support. It takes a file path from the user where it reads the binary file and parses it.
Emscripten, as of today (June 2016), supports a filesystem called NODEFS which provides access to the local file-system when running on nodejs.
You need to manually mount the NODEFS filesystem into the root filesystem. For example:
EM_ASM(
FS.mkdir('/working');
FS.mount(NODEFS, { root: '.' }, '/working');
);
You can then access ./abc from the local filesystem via the virtual path /working/abc.