/*
 * Copyright 2014 Luigi.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cryptohelper.proxy;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;

/**
 *
 * @author Luigi
 */
public class testProxy1 {

    public static void main(String[] args) {

        ArrayList<Integer> list = new ArrayList<Integer>();
        File file = new File("bgItaliano.txt");
        BufferedReader reader = null;

        try {
            FileInputStream fis = new FileInputStream(file);
            char current;
            String numero = "";
            String numeroCompleto = "";
            
            while (fis.available() > 0) {
                current = (char) fis.read();
                if (current != '\t') {
//                    System.out.print(current);
                    numero = ""+current;
                    numeroCompleto = numeroCompleto + numero; 
                }
                else if (current == '\t') {
                    System.out.println(numeroCompleto);
                    numeroCompleto = "";
                }
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

        /*
        try {
            reader = new BufferedReader(new FileReader(file));
            String text = null;

            int i;
            while ((text = reader.readLine()) != null) {
                System.out.println(text);
                i = ((int) Integer.parseInt(text));
                System.out.println(i);
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (reader != null) {
                    reader.close();
                }
            } catch (IOException e) {
            }
        }
*/
//print out the list
        System.out.println(list);

    }

}

@@ -1027,32 +1027,60 @@
 reader = null;%0D%0A
+        int i = 0;%0D%0A        
 %0D%0A        try %7B%0D
@@ -1249,32 +1249,46 @@
 %0D%0A            %0D%0A
+            %0D%0A
             whil
@@ -1356,24 +1356,42 @@
 is.read();%0D%0A
+                %0D%0A
             
@@ -1757,312 +1757,22 @@
     
-%7D%0D%0A            %7D%0D%0A        %7D catch (IOException e) %7B%0D%0A            e.printStackTrace();%0D%0A        %7D%0D%0A%0D%0A        /*%0D%0A        try %7B%0D%0A            reader = new BufferedReader(new FileReader(file));%0D%0A            String text = null;%0D%0A%0D%0A            int i;%0D%0A            while ((text = reader.readLine()) != null) %7B%0D%0A
+    i++;%0D%0A    
     
@@ -1802,20 +1802,24 @@
 println(
-text
+%22i = %22+i
 );%0D%0A    
@@ -1834,83 +1834,24 @@
     
-i = ((int) Integer.parseInt(text));%0D%0A                System.out.println(i);
+%7D%0D%0A             
 %0D%0A  
@@ -1864,88 +1864,27 @@
     
-%7D%0D%0A
     
-    %7D catch (FileNotFoundException e) %7B%0D%0A            e.printStackTrace();
+%0D%0A            %7D
 %0D%0A  
@@ -1963,223 +1963,10 @@
    %7D
- finally %7B%0D%0A            try %7B%0D%0A                if (reader != null) %7B%0D%0A                    reader.close();%0D%0A                %7D%0D%0A            %7D catch (IOException e) %7B%0D%0A            %7D%0D%0A        %7D%0D%0A*/%0D%0A//print out the list
+%0D%0A
 %0D%0A  
@@ -1990,20 +1990,24 @@
 println(
-list
+%22i = %22+i
 );%0D%0A%0D%0A  

Revert "Merge origin/master"