🔥 Welcome to my blog! Latest updates available now. Visit daily! 🔥 🔥 Click Here for Latest Updates – Visit My Blog 🔥
🔥 Latest Updates 📊 GP Grade Finder 📢 Government Services Info 🆕 New Schemes Updates

Closing a File &File Properties in Python Programming

Closing a File:

After completing our operations on the file,it is highly recommended to close the file. For this we have to use close() function.

f.close()

Various properties of File Object:

Once we opened a file and we got file object, we can get various details related to that file by using its properties.\

name → Name of opened file

mode → Mode in which the file is opened

closed→ Returns boolean value indicates that file is closed or not

readable()→ Retruns boolean value indicates that whether file is readable or not

writable()→ Returns boolean value indicates that whether file is writable or not.

No comments:

Post a Comment

Thank you Very Much.For Given Comment

Birth & Death Registration Rules 2026

జనన, మరణాà°² నమోà°¦ు à°µిà°·à°¯ంà°²ో 2026 à°…à°•్à°Ÿోబర్ 1 à°¨ుంà°šి à°•ొà°¤్à°¤ à°¨ిà°¬ంధనలు అమల్à°²ోà°•ి à°°ాà°¨ుà°¨్à°¨ాà°¯ి. 🔹 21 à°°ోà°œుà°²్à°²ోà°ªు: à°¸ాà°§ాà°°à°£ à°°ిà°œిà°¸్à°Ÿ్à°°ేà°·à°¨్ 🔹 21 à°°ోà°œుà°² తర్à°µాà°¤...