read() file??

jubafre at brturbo.com jubafre at brturbo.com
Tue Sep 10 15:07:01 EDT 2002


     I have a file with assembler instruction and i want read the lines of the file and put in a list of string, this is easy to do, but i don´t want to consider the caracteres "/" and the othes after him.

file.asm:
ADD D1  /coment1
LDA D2  /coment2


list of strings:
X=[ 'ADD D1' , 'LDA D2' ]
	
Juliano Freitas
www.gebrasil.hpg.com.br 


More information about the Python-list mailing list