mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-21 19:44:21 -05:00
actually handle append file modes
This commit is contained in:
parent
1ef6d5db96
commit
ddc2445104
@ -54,7 +54,7 @@ function fs.open(path,mode) -- string string -- table -- Opens file *path* with
|
||||
if mode:find("r") then
|
||||
fobj.read = fread
|
||||
end
|
||||
if mode:find("w") then
|
||||
if mode:find("w") or mode:find("a") then
|
||||
fobj.write = fwrite
|
||||
end
|
||||
return fobj
|
||||
|
Loading…
Reference in New Issue
Block a user