void ReadFile() throws Exception
{
FileReader file = new FileReader(File_name);
BufferedReader reader = new BufferedReader(file);
String text ="";
String line = reader.readLine();
...
Type: Posts; User: jocdrew21
void ReadFile() throws Exception
{
FileReader file = new FileReader(File_name);
BufferedReader reader = new BufferedReader(file);
String text ="";
String line = reader.readLine();
...
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...
void ReadFile() throws Exception
{
FileReader file = new FileReader(File_name);
BufferedReader reader = new BufferedReader(file);
String text ="";
String line = reader.readLine();
...
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...
import java.io.*;
import java.util.*;
//import java.lang.*;
public class ReadNumbers
{
private Formatter make_file;
private String File_name = "num.txt";
void input()
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;...
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...