# How to write the result of the command

**URL:** <https://forum.katalon.com/t/how-to-write-the-result-of-the-command/56271>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [July 2, 2021, 11:33am UTC](https://forum.katalon.com/t/how-to-write-the-result-of-the-command/56271 "2021-07-02T11:33:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [July 2, 2021, 11:50am UTC](https://forum.katalon.com/t/how-to-write-the-result-of-the-command/56271/4 "2021-07-02T11:50:10Z")

</div>

No, you can not save the output from `System.out` into file. Why? See [this post](http://forum.katalon.com/t/how-to-save-console-results/55656/8)

Of course you can write a string into an arbitrary file directly by your Groovy script. If you want to see an example of `java.io.PrintStream#println()` usage, for example I found the following:

- [https://www.programiz.com/java-programming/printstream](https://www.programiz.com/java-programming/printstream)

You need to manage file (open it, println into it, close it) for yourself.

---

_[View the full topic](https://forum.katalon.com/t/how-to-write-the-result-of-the-command/56271)._
