sequences read from file
hi everybody
i have a file and in that file (referred to as fn_in) there is this:
{{00,10,01},{"ç",3,"text"},{"#",5,"text"}
{"ç",1500,"text3"},{"#",1600,"text4"}
{"ç",1500,"text5"},{"#",1600,"text6"}}
{{00,10,02},{"ç",3,"text"},{"#",5,"text"}
{"ç",1500,"text3"},{"#",1600,"text4"}
{"ç",1500,"text5"},{"#",1600,"text6"}}
now i use
line = gets(fn_in)
if sequence(line) then
puts(fn_out, line[1][1])
end if
i thought this would write this into the output file (referred to as
fn_out)
00
because i thought that line[1] is {00,10,01} and then line[1][1]
should be 00.
but it gives me an error (attempt of subscripting an atom).
what do i do wrong?
thanx in advance
felix
|
Not Categorized, Please Help
|
|