Thank, I just use the line=mgetl(fd,-1); lastfourlines=line($-3:$) thanks computidoo -- View this message in context: http://mailinglists.scilab.org/mgetl-question-tp2801892p2805647.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.