Difference between revisions of "Write file"
Jump to navigation
Jump to search
(init) |
(minor stuff) |
||
Line 5: | Line 5: | ||
===File_Path=== | ===File_Path=== | ||
The file path is requires the drive to be specified. For Xbox 360 you need to use <code>GAME:/"</code> as <code>HDD:</code> isn't accessible, Rock Band 3 Enhanced adds <code>RB3HDD:</code> to bypass this. For PS3 you need to use <code>GD:</code>. | |||
The file path is requires the drive to be specified. For Xbox 360 you need to use | |||
You cannot create folders through <code>write_file</code>, if you try to write to a folder that doesn't exist the file will not be created and it will silently fail. | You cannot create folders through <code>write_file</code>, if you try to write to a folder that doesn't exist the file will not be created and it will silently fail. | ||
Line 14: | Line 13: | ||
A [[DataArray]] to write to the file. | A [[DataArray]] to write to the file. | ||
==Example== | |||
Xbox 360 | |||
<code>{write_file "GAME:/rootarray.dta" $syscfg}</code> | |||
PS3 | |||
<code>{write_file "GD:/dev_hdd0/game/" $syscfg}</code> |
Revision as of 17:47, 8 April 2024
Creates a file with specified contents.
{write_file File_Path Contents}
File_Path
The file path is requires the drive to be specified. For Xbox 360 you need to use GAME:/"
as HDD:
isn't accessible, Rock Band 3 Enhanced adds RB3HDD:
to bypass this. For PS3 you need to use GD:
.
You cannot create folders through write_file
, if you try to write to a folder that doesn't exist the file will not be created and it will silently fail.
Contents
A DataArray to write to the file.
Example
Xbox 360
{write_file "GAME:/rootarray.dta" $syscfg}
PS3
{write_file "GD:/dev_hdd0/game/" $syscfg}