input 2 « Operation « Java I/O Q&A





1. Using switch statements and while loops to add data from input file    forums.oracle.com

I know that my code is far from complete but this is what I was able to get through so far. I'm fairly sure that I need to put a counter at the beginning when I declare my variables and then implement that counter within the switch statement to add the number of grades, but I'm unsure how to declare that ...

2. Can't get java to read my file input    forums.oracle.com

while(scan.hasNextLine()) // as long as there is another line to be read { String text = scan.nextLine(); // read the first line Scanner scan2 = new Scanner(text); // set up a second scanner to process the String we just read in if(scan2.hasNext()) { name = scan2.next(); } else { continue; // go to the next line } System.out.println(name); }

3. help with input files and loops    forums.oracle.com

@flounder Noted. I wont put words in your mouth anymore. There is advantage to aiming higher than your current level of knowledge allows for though. In order to get there you are forced to learn the stepping stones to get there. I do it all the time. I pick a task that I know I dont have the knowledge to complete ...

4. IIOException: Can't read input file!    forums.oracle.com

5. Automated File input    forums.oracle.com

6. How to get an input from opening a file through the right click in Java??    forums.oracle.com

Hi all, I'm developing an application for Windows right now using J2SE. I need to make a feature where user can just right click on a file and my program will show up as an option to be launched. I've done some research and found out how to make that option show up to be launched, but am confused on how ...

7. Reading an input file of integers    forums.oracle.com

Hi, I'm trying to read an input file of x-y coordinates in the format below: x y 1 2 1 3 1 4 ... Anyways, I was wondering if it's possible to read 2 integers from one line in a text file, or if the coordinates have to be on separate lines alternating between x and y. Either way, any help ...

8. how can we give user choise of input files for this code    forums.oracle.com

Hi all, here i am trying to zip one file given by user. Now i want to convert this code such a way that user can able to give n number of files & after giving inputs user has to get all the input files in ziped formate. can any body show me the way. System.out.print("Please enter file name to zip ...

9. How to take in values from an Input File    forums.oracle.com





10. how to read in an input file.    forums.oracle.com

hi, i am having trouble trying to figure out how to read in an input file and assign the input file to a set of varibles. Example: input file contains: cat,dog,mouse. And I want my program to read the input file and then assign it to varibles in my program such as: c=cat, d=dog, m=mouse. Thank you very much.

11. input to file    forums.oracle.com

hey im a student working on an exersise and im wondering how to take keyboard input and write it to a file that can later be viewed. my "teacher" has not told us how to do this in class and its not in our textbook. im a first semester student so my knowlege is limeted, the program will take info about ...

12. deleting input file to an application,    forums.oracle.com

Hi, i have an application which is running on linux machine. The input to this application is coming from a file. Input file was very big in size. There are other steps to be taken after the loop which is reading data from that file. Hence i kept that loop inside a try/catch block. I do not want to terminate the ...