User Profile

Collapse

Profile Sidebar

Collapse
sumoseth
sumoseth
Last Activity: Jan 13 '07, 11:43 AM
Joined: Jan 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sumoseth
    replied to File Writing
    in Java
    yes this is the code to enter the details into the file:

    Code:
     import java.io.*;
    public class RegisterEmployees
    {
    static    InputStreamReader in=new InputStreamReader(System.in);
    static     BufferedReader br = new BufferedReader(in);
        public static void enterEmployeeNames() throws IOException
        {
            File EmpDatabase = new File("C:\\Documents and Settings\\All Users\\Desktop");
    ...
    See more | Go to post

    Leave a comment:


  • sumoseth
    started a topic File Writing
    in Java

    File Writing

    hi, im relatively new at programming.
    Im using bluej.

    i have manged to write the following data to a file.

    0213 - Sumair Seth
    9801 - John Smith
    7373 - Jason Porter
    1283 - Allison Fairth

    I need to read only the 4 digit string(0213 and 9801) and write it into an array. I need to do this everytime i write a number and a name(in the above format) to the file. Could someone help...
    See more | Go to post
No activity results to display
Show More
Working...