Thread: File I/O Tool
View Single Post
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 06-15-2011, 05:03 PM

Quote:
Originally Posted by arty-fishl View Post
yes, and read them. (they don't have to end in .txt, but they should be plain text files ie. Not images etc.)
Hmmm...
...
...
...
...
...
...
...
...
...

EDIT: It's not working. It creates new files all right but when I try to make it write a string variable to line 1 of the created file, it gives me an error.
Quote:
Error during simulation.




Alice version: 2.2 02/10/2011



Throwable that caused the error:

Traceback (innermost last):

File "edu.cmu.cs.stage3.alice.core.property.ScriptPrope rty[name=script,owner=edu.cmu.cs.stage3.alice.core.res ponse.ScriptResponse[world.iOTool.write_line.__Unnamed0__]]", line 1, in ?

File "<string>", line 7, in __init__

AttributeError: class 'org.python.modules.os' has no attribute 'path'



Thank you for taking the time to read this signature. This signature loves you.

Last edited by DensetsuNoKaboom; 06-15-2011 at 05:16 PM.
   
Reply With Quote