New account registration is temporarily disabled.

RMVX HELP WITH SIMPLE QUESTLOG

Posts

Pages: 1
so i have a simple questlog and i'd like it to be printed to a file.
i do this by using this code:

 File.open("MyFile.txt", 'w') { 
|file|
file.write("text here") }]

i call this every time i have to write a new quest. the problem is, this always overwrites my last file instead of adding to it. is there a way to modify it that it either ads to the file instead of overwriting OR just write the full finished quest questlog file to a text file?

i use simple questlog by hellminor :)
In the File.open you use the 'w' flag which is write a completely new file. Change the 'w' to 'a' so it is opened in append mode, that should just add to the end of the file.
Pages: 1