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

write file with append mode #54

Closed
millken opened this issue Jun 7, 2013 · 3 comments
Closed

write file with append mode #54

millken opened this issue Jun 7, 2013 · 3 comments

Comments

@millken
Copy link

millken commented Jun 7, 2013

How to append to a file

util.writefile("test.log",  "追加content", "RWXU")
@daurnimator
Copy link
Contributor

Use the O_APPEND flag

@justincormack
Copy link
Owner

Sorry, util.writefile was missing a flags option - some of those commands need some more work.

The version in git head not allows you to do

util.writefile("test.log", "追加content", nil, "append")

(the file should be created first). Its not ideal, will look at cleaning up further...

@millken
Copy link
Author

millken commented Jun 9, 2013

fine ,good job!

@millken millken closed this as completed Jun 9, 2013
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

3 participants