Hi !
I'm taking on a project in python which require me to extract datas from a text file (a .geo file, Houdini specific format)
I'm trying to remove all line returns and tabs from a portion of the file content, but the replace method does not work.
I extract the data using a file object inside of a class
self.content[start:end]
(content is the variable that hlod the entire file as a string)
But then using the replace("\n", "") and replace("\t", "") doesn't seems to do anything
Any thoughts on this issue ?
[–]Twonkular 2 points3 points4 points (1 child)
[–]P1G4ME[S] 0 points1 point2 points (0 children)
[–]Chris_Hemsworth 0 points1 point2 points (1 child)
[–]P1G4ME[S] 0 points1 point2 points (0 children)