From: Lyle Johnson Date: 2002-12-18T02:06:22+09:00 Subject: Re: simple parse error, but i can't find him Jonas Hoffmann wrote: > f = File::open(dateiname,mode="w") > if f > s.write("ok\n") > else > s.write("f\n") > lesen = s.gets > lesen.chomp! > bytezaehler = 0 > while bytezaehler < lesen.to_i > f.putc(s.getc) > bytezaehler=bytezaehler+1 > end > f.close > end > if auswahl == "D" > # > # > # > end > print (s, " wurde abgebrochen\n") > s.close > end > end > [/CODE] > > And her i get a parse Error in Line 75, its one of the two end at the end of > the file . I think the Problem is the Thread Command but i do not know what > to do :( I hope somebody can !? And perhaps can explain what my error. I don't see where you closed the "if f" block: f = File::open(dateiname,mode="w") if f s.write("ok\n") else s.write("f\n") end # <---- this "end" was missing! lesen = s.gets lesen.chomp! ... Hope this helps, Lyle