I'm new to java and I need to write a string that i generated in my code to an output file. I'm currently writing the string to the standard output like so :
All the types e.g. 'Receiver' or 'out1' are of type string. Could anyone show me how to open a file for writing and then write this information to the file? Is there some sort of file writer equivalent for system.out.println()? Thanks very much
Lookup the class, FileWriter.