about summary refs log tree commit diff stats
path: root/file.lua
diff options
context:
space:
mode:
Diffstat (limited to 'file.lua')
-rw-r--r--file.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.lua b/file.lua
index a60fe69..ced2a04 100644
--- a/file.lua
+++ b/file.lua
@@ -29,7 +29,7 @@ function load_from_file(infile)
 end
 
 function save_to_disk(lines, filename)
-  local outfile = io.open(filename, 'w')
+  local outfile = App.open_for_writing(filename)
   for _,line in ipairs(lines) do
     if line.mode == 'drawing' then
       store_drawing(outfile, line)