Menu

#3 Cant output text to a file

None
closed
nobody
None
5
2018-08-02
2005-09-01
MarkB
No

I am trying to output text from beanshell to a file.
Here is the code that I am using:

System.setProperty("outfile", "C:/temp/test.txt");
System.out.println("hello world");
cat("C:/temp/test.txt");

When I run it, "hello world" is printed to the console but
not to the file specified.

Can you help please?

Discussion

  • nickl-

    nickl- - 2018-08-02
    • status: open --> closed
    • Group: -->
     
  • nickl-

    nickl- - 2018-08-02

    Ticket has been migrated to github.
    Please follow up on this over here: https://github.com/beanshell/beanshell/issues/483

     

Log in to post a comment.