2006-02-02, 18:54
i've searched but cannot find the answers for these...
i'm seeing an issue where i read a text file that has lines with tabs (\t).
example line...
thu feb 02 09:44:10 2006 gms-5 pattern
but when i read in the text and display it using controllist it shows like this on screen...
thu feb 02 09:44:10 2006gms-5 pattern
also...
how can i insert a new line, as the first line (not the last) of a text file... using append (not read in entire file and rewrite it)? i've tried f.seek(0) but that does not place me at the first line?
i'm seeing an issue where i read a text file that has lines with tabs (\t).
example line...
thu feb 02 09:44:10 2006 gms-5 pattern
but when i read in the text and display it using controllist it shows like this on screen...
thu feb 02 09:44:10 2006gms-5 pattern
also...
how can i insert a new line, as the first line (not the last) of a text file... using append (not read in entire file and rewrite it)? i've tried f.seek(0) but that does not place me at the first line?