Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package Test;
- import java.io.*;
- public class Import extends Exception{
- public void lesen() throws IOException
- {
- int counter=0;
- FileReader fr = new FileReader("C:\\Users\\Mathias Elmlinger\\Desktop\\Test.txt");
- BufferedReader br = new BufferedReader(fr);
- double vals[] = new double[1000];
- double vals2[] = new double[1000];
- while(br.readLine() !=null){
- String temp[] = br.readLine().split(";");
- vals[counter] = Double.parseDouble(temp[0]);
- vals2[counter+1] = Double.parseDouble(temp[1]);
- counter=counter+1;
- }
- System.out.println(vals + "," + vals2);
- br.close();
- }
- }
Add Comment
Please, Sign In to add comment