Write file

From Milo Modding Wiki
Revision as of 17:50, 8 April 2024 by Glitchgod (talk | contribs) (oopsie forgot to remove a ")
Jump to navigation Jump to search

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}