Skip to content
Advertisement

Tag: file

Reading Matrix from file

I have a txt file consisting some numbers with space and I want to make it as three 4*4 matrixes in python. Each matrix is also divided with two symbols in the text file. The format of the txt file is like this: My code is now like this but it is not showing the output I want. Can you

Change Value of a Kivy Property from a seperate File

So at the moment im having a problem with Kivy, which i cant resolve. I have a situation where i want to change the Value of a Kivy NumericProperty in a File “A” from another programm “B”, thus that the program “C”, where all the Kivy interface stuff is, detects the change and updates the value on the screen. File

Read out file and convert certain line into a correct form

I have a problem. I am reading in a file. This file contains abbreviations. However, I only want to read the abbreviations. This also works. However, not in the desired format as expected, I would like to save the abbreviations cleanly per line (see below for the desired output). The problem is that I’m getting something like ‘t\acro{…. How can

Reading files faster in python

I’m writting a script to read a TXT file where each line is a Log entry and I need to separate this log in different files (for all Hor, Sia, Lmu). I’m reading each line and dividing in new files with no problem when using my test file (80kb), but when I try to apply to the actual file (177MB

Advertisement