Hello,
I am currently creating a file a the beginning of running my program using oFileStream = New System.IO.FileStream("FileName", System.IO.FileMode.Create).
Data from a serial port is being saved to this file throughout the program, and what I am looking to do is close this current file with a button and open a new file with the same "FileName" but I would like this file name to be incremented each time I click the button. Is there an easy way to accomplish this?
I am currently creating a file a the beginning of running my program using oFileStream = New System.IO.FileStream("FileName", System.IO.FileMode.Create).
Data from a serial port is being saved to this file throughout the program, and what I am looking to do is close this current file with a button and open a new file with the same "FileName" but I would like this file name to be incremented each time I click the button. Is there an easy way to accomplish this?