I have a short question - what's the code to find the number of rows and columns in a text file? Say I have something like this:

2,7,3
4,5,2

I want to assign some variable with the number 3 and another with 2. If yer wondering why, I need this fer my tiling. :)