Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8982233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:31:54+00:00 2026-06-15T20:31:54+00:00

Are there any other commands than open() in python to edit files (on Windows

  • 0

Are there any other commands than open() in python to edit files (on Windows or *NIX).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:31:55+00:00Added an answer on June 15, 2026 at 8:31 pm

    You can get this kind of information very fast and interactively if you’re using ipython:

    In [5]: file. #[tab pressed]
    file.close       file.isatty      file.read        file.tell
    file.closed      file.mode        file.readinto    file.truncate
    file.encoding    file.mro         file.readline    file.write
    file.errors      file.name        file.readlines   file.writelines
    file.fileno      file.newlines    file.seek        file.xreadlines
    file.flush       file.next        file.softspace   
    
    In [5]: print file.flush.__doc__
    flush() -> None.  Flush the internal I/O buffer.
    
    In [6]:
    

    but I still recommend checking the documention, section 7.2.

    Also, to construct a file object (get an object of type ‘file’), “open” is the only possibility in python3 (in python2 there is also “file”, which is sort of alias to “open”)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any alternative other than Process to execute built-in shell commands in C#?
Is there any other method that is faster than doing like this? private void
Is there any other command for redirecting a controller to a particular view page
Are there any other similar packages that help identify and provide capabilities for browser
Is there any other better way to fill up the array like : var
Are there any other packages for doing Venn diagrams in R besides the limma
is there any other simple,nicer way? require 'pp' a1 = [02/28/10,Webinars,131,0,26 Feb 2010,0,3d, 8h,
Is there any other way in java to implement call backs apart from inner
Is there any other implementation (e.g. in an OSS project) of a Java SecurityManager
Is there any other way to change the QTextLayout of a QTextBlock that is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.