"Loading..."
$ f = open("C:\Users\King\Downloads\renpy-7.4.0-sdk\CodenameX\game\"filename.txt", "w")
$ f.write("This is a test file")
$ f.close()
"There should now be a file loaded."
The problem is, that when I get to this part in the dialogue, I guess this error message:
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 448, in script
$ f = open("C:\Users\King\Downloads\renpy-7.4.0-sdk\CodenameX\game\"filename.txt", "w")
File "game/script.rpy", line 448, in <module>
$ f = open("C:\Users\King\Downloads\renpy-7.4.0-sdk\CodenameX\game\"filename.txt", "w")
IOError: [Errno 22] Invalid argument: 'C:\\Users\\King\\Downloads\renpy-7.4.0-sdk\\CodenameX\\game"filename.txt'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 448, in script
$ f = open("C:\Users\King\Downloads\renpy-7.4.0-sdk\CodenameX\game\"filename.txt", "w")
File "renpy/ast.py", line 908, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "renpy/python.py", line 2104, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/script.rpy", line 448, in <module>
$ f = open("C:\Users\King\Downloads\renpy-7.4.0-sdk\CodenameX\game\"filename.txt", "w")
IOError: [Errno 22] Invalid argument: 'C:\\Users\\King\\Downloads\renpy-7.4.0-sdk\\CodenameX\\game"filename.txt'
I don't exactly know what it means, or how to fix it. Can somebody please help me out? Thank you