Bottom Page

Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 is it possible to use python to read and write from a jsx file?
i have extend script java script document i want to write into using python. but it didnt work. does it only work with txt files?
Quote:but it didnt work.
How so? Please define didn't work!
What were you expecting it to do, what does your code look like?
read file. write into file. looked something like this:

with open('C:/Users/mr big/Desktop/xxx1.jsx', 'r') as f2:
text = "xxx"
with open('C:/Users/mr big/Desktop/xxx1.jsx', 'w') as fout:
Can you upload a small jsx-file?

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Does python guarantees that file.write() works without file.close() ? kryptomatrix 6 144 Oct-18-2019, 11:44 PM
Last Post: snippsat
  I am trying to read a pandas file Balaji 1 78 Oct-08-2019, 10:55 PM
Last Post: Larz60+
  How to read a text file into a list or an array musouka 2 201 Oct-07-2019, 01:54 PM
Last Post: musouka
  open, read and replace a string in a file Reims 0 74 Oct-02-2019, 01:30 PM
Last Post: Reims
  How do I read the HTML files in a directory and write the content into a CSV file? glittergirl 1 108 Sep-23-2019, 11:01 AM
Last Post: Larz60+
  Read each line, replace string and save into a new file igormonteiro 2 163 Sep-15-2019, 01:24 PM
Last Post: buran
  How do I write class objects to a file in binary mode? Exsul1 7 399 Sep-14-2019, 09:33 PM
Last Post: snippsat
  How to read a file using stdin? pyth0nus3r 1 128 Aug-24-2019, 01:14 AM
Last Post: Larz60+
  how do i write a cross-platform relative file path? pseudo 2 123 Aug-23-2019, 05:07 PM
Last Post: ThomasL
  write to txt file one line antmar904 3 240 Aug-16-2019, 02:40 PM
Last Post: Axel_Erfurt

Forum Jump:

Users browsing this thread: 1 Guest(s)