04-21-2008 06:49 AM
04-21-2008 07:03 AM
04-21-2008 07:13 AM
04-21-2008 07:21 AM
Hai Rico,
Search the forum by "find number of lines in a text file". You will get lot of informations from LabVIEW Champions.
Thanks,
Mathan
04-21-2008 08:00 AM
04-21-2008 08:09 AM
Hi Osiris,
here is a link to some solutions from altenbach, as mathan mentioned.
http://forums.ni.com/ni/board/message?board.id=170&message.id=208085&query.id=43949#M208085
Mike
04-22-2008 08:32 AM
Another tip which will make things much faster - you need to optimize the amount of data you pull from the disk at once. On Windows systems, this is about 65,000 bytes. You should be able to achieve disk-limited performance.
One caveat - the end-of-line "character" can be CR, LF, CR/LF, or LF/CR depending on the operating system and system settings. Practically, searching for either CR or LF, once you know, will do the trick. Windows is usually CR/LF, so either will work.
04-22-2008 09:32 AM
04-22-2008 10:31 AM
Osiris81 wrote:
Unfortunatley, all of your methods do not work, they all need to read the whole file first to get the number of lines and that's way to slow if you have big files.