Thank you chaarmann for your reply,
I am reading from an excel sheet, manipulating the data and then writing on text files so that I use them in another class.
Below is the related code:
- public void setInputFile(String inputFile) {
-
this.inputFile = inputFile;
-
}
-
-
-
//This is in a different class
-
ReadExcel r = new ReadExcel();
-
r.setInputFile("C:/Trial/TrialRead.xls");
-
r.read();
Going back to the previous code that I posted:
In fact, when I am printing the values before adding them to the arrayList "current" and printing them to the text file "myFile", I am getting correct results (the numbers without the character 'Â').
I tried also printing the contents of the arrayList; it is also correct. So it seems that my problem is when printing to the file.
I did the code initially on a PC which is based on an English system and I got correct results even on the file. When I imported the project into a French based PC, I got errors in the syntax of the numbers (the comma and the point differ between the two systems); I managed to fix them but I am stuck with this weird character being printed on the file and thus everywhere in the project!
Thank you,
Regards