文档目录
读取文件的字符串行数(文件过大时不推荐使用,读取速度会变慢)。
nt fileReadLineCount(string filePath);
文件路径
文件的行数;-1 表示读取失败
// 读取SD卡中Data.txt 文件的字符串行数,并用整数控件num1.val显示 num1.val = fileReadLineCount("Data.txt");