i'm trying to read data from .csv file and it give me grabage so i will be pleased if someone help me
thanks
import java.io.*;
public class ReadFile {
public void File2 () throws FileNotFoundException, IOException{
FileInputStream fstream = new FileInputStream("C:/myfile.csv");
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader ( new InputStreamReader (in));
String strline ;
strline = br.readLine();
while (strline != null){
System.out.println(strline);
System.out.println();
}
in.close();
}
}