Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | paxetgloria |
Hi, I’m trying to get my head around store_line(). If I do,
var file = File.new()
file.open("res://test.txt", File.WRITE)
file.store_line("Hello World")
file.close()
script writes “Hello World.”(with dot at the end) into the file.
If I call file.store_line(“Hello World”) twice,
var file = File.new()
file.open("res://test.txt", File.WRITE)
file.store_line("Hello World")
file.store_line("Hello World")
file.close()
the output is:
Hello World
Hello World
Is this a bug or a feature?