---
title: "Discussion on \"The Inner Workings of File Handling: Exploring Open, Read, Write and Close Operations 📁\" | Hashnode"
description: "Discussion on \"The Inner Workings of File Handling: Exploring Open, Read, Write and Close Operations 📁\". Ever wonder why we perform open file operation before reading or writing to it and why we close it afterward?\nWhy can't we directly perform read or write operation?\nLet us learn what happens when you perform these file operations\nFile Handling in Pyt..."
url: "https://hashnode.com/posts/the-inner-workings-of-file-handling/6644cdf8c02480cee0f11934"
---

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

Discussion

# [The Inner Workings of File Handling: Exploring Open, Read, Write and Close Operations 📁](https://nagapuneeth.hashnode.dev/the-inner-workings-of-file-handling?utm_source=hashnode&utm_medium=feed)

Ever wonder why we perform open file operation before reading or writing to it and why we close it afterward? Why can't we directly perform read or write operation? Let us learn what happens when you perform these file operations File Handling in Pyt...

May 15, 2024 · 4 min read · nagapuneeth.hashnode.dev  
Read the article

-   [#linux](https://hashnode.com/tag/linux)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#operating-system](https://hashnode.com/tag/operating-system)
-   [#developer](https://hashnode.com/tag/developer)
-   [#devops](https://hashnode.com/tag/devops)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Puneeth](https://hashnode.com/@NagaPuneeth)

@NagaPuneeth · Bengaluru, India

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

Lead Platform Engineer @ Nokia

## Responses 1

Markdown supported · ⌘↵ to post

[Akash Irappa Chobari](https://hashnode.com/@akash490)

[Sep 12, 2024](https://hashnode.com/posts/the-inner-workings-of-file-handling/6644cdf8c02480cee0f11934/comment/66e2f4a481deacd473b1847e)

Informative.. Good work👍
