To write to a file, use the store_string
, store_line
or other store_*
methods:
var player_name = "Septian"
var file = FileAccess.open("user://save_game.dat", FileAccess.WRITE)
file.store_string(player_name)
Comments
To write to a file, use the store_string
, store_line
or other store_*
methods:
var player_name = "Septian"
var file = FileAccess.open("user://save_game.dat", FileAccess.WRITE)
file.store_string(player_name)