06-28-2019 06:43 AM
Hello,
I wrote a code that contineously writes data to a text file. The problem is I am running this VI for long time and therefore this text file is being bigger in size e.g. more than 20MB. I want to split writing data in this text file after max 2MB size. How can I do it? this is my programm .vi
Thank you,
06-28-2019 06:50 AM - edited 06-28-2019 06:51 AM
Hi ki4kou,
I want to split writing data in this text file after max 2MB size. How can I do it?
Like this:
fh = open(filename) WHILE write(fh) IF FileSize(fh) > 2MB THEN close(fh) fh=open(new file name) ENDIF WEND close(fh)
In the file functions palette you will find functions for opening and closing files. And for getting the filesize…
07-03-2019 09:56 AM - edited 07-03-2019 10:20 AM
ok i will see