---
title: "Discussion on \"Redirecting Standard Output using StringIO and Sys module - Python\" | Hashnode"
description: "Discussion on \"Redirecting Standard Output using StringIO and Sys module - Python\". Sometimes, when writing a program there could be a reason not to like writing into a file directly. In programming, one of the practices is to write data into a file because after a program runs finish all the data is lost, to prevent this, programme..."
url: "https://hashnode.com/posts/redirecting-standard-output-using-io-and-sys-module-python/63c2e3ff8be220b5edc69b53"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Redirecting Standard Output using StringIO and Sys module - Python](https://musoye.hashnode.dev/redirecting-standard-output-using-io-and-sys-module-python?utm_source=hashnode&utm_medium=feed)

Sometimes, when writing a program there could be a reason not to like writing into a file directly. In programming, one of the practices is to write data into a file because after a program runs finish all the data is lost, to prevent this, programme...

Jan 14, 2023 · 1 min read · musoye.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#files](https://hashnode.com/tag/files)
-   [#io](https://hashnode.com/tag/io)

## Written by

[Mustapha Oyebamiji](https://hashnode.com/@musoye)

@musoye · Nigeria

  
[View profile](https://hashnode.com/@musoye)

Technology, Software, Fullstack development

Backend developer | Technical writer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
