The problem is that it prints: Folder not found.
There is no error, but that is NOT the intended output.
Type: Posts; User: alextrimplez
The problem is that it prints: Folder not found.
There is no error, but that is NOT the intended output.
package functions;
import java.io.File;
import button.Actions;
public class handling
{
public static void main (String[] args)
{
File dir = new File("data.txt");
if(dir.exists())
{
How do I get my program to read .txt files? My code doesn't work. Can you please post your code? I use eclipse.
I tried to use FileReader and BufferedReader objects, but the code doesn't work.
...
Code:
package button;
import javax.swing.*;
import java.awt.event.*;
public class Actions extends JFrame implements ActionListener
{
JPanel pnl = new JPanel();
public static void main...