Jump to content

How to write to files [MOOSE]


Scifer

Recommended Posts

I'm trying to save a table to a file, just to analyze it.

Path = 'd:\\'
Filename = 'table.lua'
Data = table
UTILS.SaveToFile(Path, Filename, Data)

However I get the following log message:

Quote

ERROR: io not desanitized. Can't save current file.

I believe the path has to be de-sanitized. But how?

Link to comment
Share on other sites

16 hours ago, Chump said:

You will need to edit a LUA file so that you have access to the io library.

Thank you so much. However a second problem came up.

Quote

VFS: VFS_open_write: CreateFile(table.lua): Access is denied.


Edited by Scifer
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...