Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no docs for fs.open() #76

Closed
SpenceKonde opened this issue May 30, 2014 · 2 comments
Closed

no docs for fs.open() #76

SpenceKonde opened this issue May 30, 2014 · 2 comments

Comments

@SpenceKonde
Copy link
Contributor

Per docs:

This is the stream related file IO library.
To use this, you must type var fd = require('fs').open('filepath','flags','mode') to open a file stream.

However, fs.open is not documented, and there's no description of the "flags" argument.

@gfwilliams
Copy link
Member

Thanks - this must have got left in there by accident. It's actually E.openFile that's needed: https://github.com/espruino/Espruino/blob/master/tests/test_FS_API_4_Read_Write_FileStream.js

@gfwilliams
Copy link
Member

Proper docs now in http://www.espruino.com/File+IO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants