I would like to make sure I'm not starting to parse a monstrous CSV file before starting to parse it and set a limit to protect my code. Is there any way to do so?
Asked
Active
Viewed 66 times
0
-
2You could always just check the `FileInfo` of the file beforehand – UnholySheep Oct 21 '20 at 10:19
-
Please show your code. There is no way anyone can help answer your questions without an understanding of what you've done to "make sure". – robnick Oct 21 '20 at 10:51
-
1Do you want to read the file twice? You can only get line count by reading the file unless each line has the same number of bytes. – jdweng Oct 21 '20 at 12:15