Where is the code that builds the String to be written to the file? That would be where you would test values to see how to build the String.
For my previous example:
if true don't add a String...
Type: Posts; User: Norm
Where is the code that builds the String to be written to the file? That would be where you would test values to see how to build the String.
For my previous example:
if true don't add a String...
The code should build the String you want written to the file using the values returned from the method.
If the method returns true, what String do you want written?
If the method returns false,...
Text files contain Strings. What problems are you having buidling the Strings you want to write to the text file?
Please edit your post and wrap your code with
<YOUR CODE HERE>
to get...