I have to create a file mechanism which creates a new file, check at real time if the file has reached to some length and then open a new file in order to write the extra data. But then, if the new file has also reached the same limit, open a new file.
For this, I was thinking to use file observer, but it requires to change the watched file name, and it seems that each file will have a new instance of fileObserver.
is the an easiest way to do it?