Create txt File with python...
#1
thats my current skript:

Code:
outfile=open("smb//10.0.0.10/file.txt","w")
outfile.close()

i want to run the script on the xbox and create the document in an shared directory on my server....

any ideas?
Reply
#2
foo = open('filename', 'w')
foo.write('some text')
foo.close()

The python site has good documentation.
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#3
ok i figured that out alredy but thanks...

but its not exactly what i want...i forgot to write that Confused

i want to run the script on the xbox but create the document in an shared directory on my server....


any ideas? Huh
Reply
#4
foo=open('path/to/filename.txt','w')

please read this basic stuff in the python manual and some on our wiki

http://www.python.org
http://wiki.xbmc.org/?title=Python_Development
Reply

Logout Mark Read Team Forum Stats Members Help
Create txt File with python...0