[PD] msgfile: number of lines ?

tim vets timvets at gmail.com
Thu Oct 14 17:54:39 CEST 2010


ok, so I ended up with:
[clear, read myfile.txt, end, skip -1, where, rewind(
works :)
thanks,
Tim

2010/10/14 IOhannes m zmoelnig <zmoelnig at iem.at>

> On 2010-10-14 15:43, tim vets wrote:
> > Hi all,
> > Is there a way to get msgfile to report the number of lines the loaded
> file
> > contains (without using 'flush' and a counter) ?
>
> you can get the current position with [where(
> (after loading you will be at the beyond the last position, so you get a
> bang; but you can nvaigate to the last line with [skip -1((
>
> fgmasdr
> IOhannes
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20101014/44754682/attachment-0001.htm>


More information about the Pd-list mailing list