Is it possible to create multiple text files using the class Formatter?
Here is the instructions for this program: "Write a program to create data for testing the (file-matching accounts receivable) program. Use sample account data from blah blah blah. Run the program to create the files trans.txt and oldmast.txt, to be used by your file-matching program."
I've seen in the text where I can create one text file using the class Formatter but can it create more than one within it?
Originally posted by Ulf Dittmer: No, you'd need to create two Formatter objects. But I assume that the files will contain different content anyway, so it's not like using just one Formatter makes things much easier, right?
That makes perfect sense and is what I suspected.
And yes, both text files will have slightly different formats.