I have file x.txt that conatins content, now the code I have so far is:
this is just a sample of the fileCode:
JPanel center = new JPanel();
JTextArea inputText = new JTextArea();
JScrollPane scroll = new JScrollPane(inputText);
So how would I take the contents of x.txt and print them to the JTextArea?