Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

file

How do I change the file creation date of a Windows file?

August 13, 2022 by Magenaut

How do I change the file creation date of a Windows file from Python?

Categories Python, Q&A Tags date, file, python, time, windows Leave a comment

Creating a new file, filename contains loop variable, python

August 13, 2022 by Magenaut

I want to run a function over a loop and I want to store the outputs in different files, such that the filename contains the loop variable. Here is an example

Categories Python, Q&A Tags file, python Leave a comment

whitespaces in the path of windows filepath

August 13, 2022 by Magenaut

I am working on file operations using python.

Categories Python, Q&A Tags file, python Leave a comment

Python: read all text file lines in loop

August 13, 2022 by Magenaut

I want to read huge text file line by line (and stop if a line with “str” found).
How to check, if file-end is reached?

Categories Python, Q&A Tags file, python Leave a comment

parsing a fasta file using a generator ( python )

August 13, 2022 by Magenaut

I am trying to parse a large fasta file and I am encountering out of memory errors. Some suggestions to improve the data handling would be appreciated. Currently the program correctly prints out the names however partially through the file I get a MemoryError

Categories Python, Q&A Tags fasta, file, parsing, python Leave a comment

Does filehandle get closed automatically in Python after it goes out of scope?

August 13, 2022 by Magenaut

If I do the following, does filehandle get closed automatically as it goes out of scope in Python:

Categories Python, Q&A Tags file, python, scope Leave a comment

Re-open files in Python?

August 13, 2022 by Magenaut

Say I have this simple python script:

Categories Python, Q&A Tags file, python Leave a comment

see if two files have the same content in python

August 13, 2022 by Magenaut

Possible Duplicates:
Finding duplicate files and removing them.
In Python, is there a concise way of comparing whether the contents of two text files are the same?

Categories Python, Q&A Tags file, python Leave a comment

In Python, is there a concise way of comparing whether the contents of two text files are the same?

August 13, 2022 by Magenaut

I don’t care what the differences are. I just want to know whether the contents are different.

Categories Python, Q&A Tags compare, file, python Leave a comment

Best method for reading newline delimited files and discarding the newlines?

August 12, 2022 by Magenaut

I am trying to determine the best way to handle getting rid of newlines when reading in newline delimited files in Python.

Categories Python, Q&A Tags file, python, readline Leave a comment
Older posts
Newer posts
← Previous Page1 … Page10 Page11 Page12 Page13 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress