Editing a .LIN file with a script seems to break the file /u/pat1822 Python Education

I need to automate a value change (lets make it simple and say I need to divide all the numbers by 2) in a .LIN file. If I open the file myself in notepad++ and change the values, the file is gonna work just fine. But when my script opens it in python to change the value and save it back, file looks just fine but wont work.

The file contain alot of fonction like ETX SOH and NUL and im wondering if runnning the script in python breaks the fonctions ?

anyone got any idea ? tks !

submitted by /u/pat1822
[link] [comments]

​r/learnpython I need to automate a value change (lets make it simple and say I need to divide all the numbers by 2) in a .LIN file. If I open the file myself in notepad++ and change the values, the file is gonna work just fine. But when my script opens it in python to change the value and save it back, file looks just fine but wont work. The file contain alot of fonction like ETX SOH and NUL and im wondering if runnning the script in python breaks the fonctions ? anyone got any idea ? tks ! submitted by /u/pat1822 [link] [comments] 

I need to automate a value change (lets make it simple and say I need to divide all the numbers by 2) in a .LIN file. If I open the file myself in notepad++ and change the values, the file is gonna work just fine. But when my script opens it in python to change the value and save it back, file looks just fine but wont work.

The file contain alot of fonction like ETX SOH and NUL and im wondering if runnning the script in python breaks the fonctions ?

anyone got any idea ? tks !

submitted by /u/pat1822
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *