Im sure there are a few other people that I know that will have different opions. But you could use code like this to find how many rows are in your file.
sub TotalRows {
open (FILE, "filename.data");
@rows =
;
close (FILE);
$Total = @rows;
return($Total);
}
$totalrows = &TotalRows;
So that gives you the amount of rows in your file. I think this will accomplish what you want to do ![[Linked Image]](https://ubbdev.com/ubb/smilies//smile.gif)
------------------
My Freeware Board