diff options
| author | ame <[email protected]> | 2025-06-17 00:22:50 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2025-06-17 00:22:50 -0500 |
| commit | c98308b44764483322df9c4cf6ec9187669a5f00 (patch) | |
| tree | 24511df0520711863e86468edc1496e47e3cfb15 | |
| parent | 975a4d65e287087404fe7fa4a03bdbe5de4969bc (diff) | |
append to stream file
| -rw-r--r-- | src/lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -74,7 +74,7 @@ int _stream_file(lua_State* L){ const char* filename = lua_tostring(L, 2);
FILE *f;
- f = fopen(filename, "w");
+ f = fopen(filename, "a");
if(f == NULL){
luaI_error(L, -1, "unable to open file");
}
|
