Search:

Type: Posts; User: alextrimplez

Search: Search took 0.10 seconds.

  1. Re: How do I get my program to read .txt files? My code doesn't work. Can you please post your code? I use eclipse.

    The problem is that it prints: Folder not found.
    There is no error, but that is NOT the intended output.
  2. Re: How do I get my program to read .txt files? My code doesn't work. Can you please post your code? I use eclipse.

    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())
    {
  3. How do I get my program to read .txt files? My code doesn't work. Can you please post your code? I use eclipse.

    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.
    ...
  4. What is wrong with my code? Handling button events in eclipse standard 4.4? Java?

    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...
Results 1 to 4 of 4