I am using to write some logs to write in locally when logs or data count above 50 i want to post the data to server. Then i write the next 50 logs values. My question is how to get the file count and how can i maintain this any one help me.
Share
EDIT count records inside the File
Notice when addnew log to file add with \n line character so we can know how many logs added
check this to how to get count of contents like this:
Now filter contents like this:
Now count is: