How do I check if the txt is empty? and if it is empty, write the records in the txt. And if it is not empty, empty it and write the records in the txt
As it currently stands, what it does is add lines to the txt. I want the TXT to be the result of the flow.
Therefore it should be deleted if it exists previously
->use read text file activity and store it in a string variable say text_Out
->use if activity the condition would be String.IsNullOrEmpty(text_Out)
if the condition turns to be true then delete that file.