Search:

Type: Posts; User: jocdrew21

Search: Search took 0.11 seconds.

  1. Replies
    12
    Views
    1,111

    Re: Creating a File with eclipse:

    void ReadFile() throws Exception
    {
    FileReader file = new FileReader(File_name);
    BufferedReader reader = new BufferedReader(file);

    String text ="";
    String line = reader.readLine();
    ...
  2. Replies
    12
    Views
    1,111

    Re: Creating a File with eclipse:

    Thank you very much... I will continue will work on this program. I am comfortable with and decided to learn Java.
    Thanks for the help, I am sure I will be back soon for more questions. Hopefully I...
  3. Replies
    12
    Views
    1,111

    Re: Creating a File with eclipse:

    void ReadFile() throws Exception
    {
    FileReader file = new FileReader(File_name);
    BufferedReader reader = new BufferedReader(file);

    String text ="";
    String line = reader.readLine();
    ...
  4. Replies
    12
    Views
    1,111

    Re: Creating a File with eclipse:

    This is what is bugging me here and I thinking I am over thinking it. I am trying to find a way similar to C++ to input and output file. For example



    ifstream in("num.txt",ios::in);
    int...
  5. Replies
    12
    Views
    1,111

    Re: Creating a File with eclipse:

    import java.io.*;
    import java.util.*;
    //import java.lang.*;

    public class ReadNumbers
    {
    private Formatter make_file;
    private String File_name = "num.txt";

    void input()
  6. Replies
    12
    Views
    1,111

    Re: Creating a File with eclipse:

    void input()
    {
    String File_name = "num.txt";
    File numbers = new File(File_name);

    if(numbers.exists()){System.out.println("The file was found");}
    else
    {
    final Formatter make_file;...
  7. Replies
    12
    Views
    1,111

    Creating a File with eclipse:

    import java.io.*;

    public class ReadNumbers
    {
    void input()
    {
    String File_name = "num.txt";
    File numbers = new File(File_name);

    if(numbers.exists()){System.out.println("The file was...
Results 1 to 7 of 7