Writing a Java Array/ArrayList/List to a text file in Jython

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pompeez
    New Member
    • Aug 2007
    • 1

    Writing a Java Array/ArrayList/List to a text file in Jython

    Hi,
    I need to write a Java Array/ArrayList/List to a text file in Jython. I used the .write() function, but it is letting me write only a string.
    Thanks!
    Pompeez
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by pompeez
    Hi,
    I need to write a Java Array/ArrayList/List to a text file in Jython. I used the .write() function, but it is letting me write only a string.
    Thanks!
    Pompeez
    The Arrays.toString method gives you a string representation of the contents of an array.

    Comment

    Working...