User Profile

Collapse

Profile Sidebar

Collapse
Dilley
Dilley
Last Activity: Jun 18 '12, 02:01 AM
Joined: Jun 16 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Dilley
    replied to populate a rectangular array from a CSV file
    in Java
    So far this is what I have but I am getting all kinds of errors. Can anyone help me sort this out?


    Code:
     
           double[][] numbers = new double[15][14];
            
            try 
            {
                br = new BufferedReader(new FileReader("Cylinder Pressure Chart.txt"));
                String line = null;
    
            while ((line = br.readLine()) != null) 
            {
    ...
    See more | Go to post

    Leave a comment:


  • Dilley
    started a topic process a .txt file into a rectangular array

    process a .txt file into a rectangular array

    Hello,
    I am trying to open a text file which is a tab seperated file of values and read them into an array. The code I have below has all kinds of errors. Can anyone help me sort it out?



    Code:
            double[][] numbers = new double[15][14];
            
            try 
            {
                br = new BufferedReader(new FileReader("Cylinder Pressure Chart.txt"));
    ...
    See more | Go to post

  • Dilley
    replied to populate a rectangular array from a CSV file
    in Java
    Just help populating the array with the text file would be a great help!
    See more | Go to post

    Leave a comment:


  • Dilley
    started a topic populate a rectangular array from a CSV file
    in Java

    populate a rectangular array from a CSV file

    hllo Java Professionals!
    I need help populating an array with a CSV or tab seperated file
    I have a file called Data.txt formatted as shown below. The number of columns or rows can vary in size depending on the .txt file i tell the method to use.

    1.5 88 106 141 177
    2 157 189 251 314
    2.5 245 295 393 491
    3.25 415 498 664 830
    4 628 754 1005 1257
    5 982 1178 1571 1964
    6 1414 1696...
    See more | Go to post
No activity results to display
Show More
Working...