Skip to content

I have some trouble about file operation #25

Answered by exodrifter
HUSTlwr asked this question in Q&A
Discussion options

You must be logged in to vote

The code you passed to CreateScriptSourceFromString is valid Python 3 syntax, but this plugin only supports Python 2 syntax.

The equivalent Python 2 syntax is:

with open('Test1.txt', 'a') as test:
  test.write('Test1')

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by exodrifter
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #25 on December 21, 2020 15:25.