# Temporarily redirect write/1 or current\_output to a file

**URL:** <https://swi-prolog.discourse.group/t/temporarily-redirect-write-1-or-current-output-to-a-file/2632>\
**Category:** Nice to know\
**Created:** [July 13, 2020, 10:02pm UTC](https://swi-prolog.discourse.group/t/temporarily-redirect-write-1-or-current-output-to-a-file/2632 "2020-07-13T22:02:42Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [December 20, 2022, 10:22am UTC](https://swi-prolog.discourse.group/t/temporarily-redirect-write-1-or-current-output-to-a-file/2632/5 "2022-12-20T10:22:15Z")

</div>

A post was split to a new topic: [Unexpected result using with\_output\_to and string(S)](https://swi-prolog.discourse.group/t/unexpected-result-using-with-output-to-and-string-s/6039)

---

_[View the full topic](https://swi-prolog.discourse.group/t/temporarily-redirect-write-1-or-current-output-to-a-file/2632)._
