I need to check excel file is empty.
Maybe I’m doing something wrong, but I will explain you my idea.
I’m counting the rows in Excel.
My variable is rowCount (int32) that store the total number of rows.
So in my IF condition if it’s below 1 Excel file would be empty.
So he is going to message Empty + my variable converted to string.
But then I realize he start counting from 0.
So my excel file can have only one row, but he will say that he is empty.
Because he start to count from 0 at the first row.
I’m trying to figure out how to check for empty file.
Thanks in advance.