AndroidフォンのSDカードに1つのテキストファイルがあり、そのファイルにはアプリケーションを介して複数の列があります。各列のデータを抽出して、異なる2つの配列に配置したいと思います。私はアプリケーション開発に不慣れなので、私を助けてくれるか、ソースコードを提供してください。
前もって感謝します。
あなたがしなければならないのは、そのようなものを使うことだけです:
try{
InputStream flux=new FileInputStream("Your_File");
InputStreamReader lecture=new InputStreamReader(flux);
BufferedReader buff=new BufferedReader(lecture);
String ligne;
while ((ligne=buff.readLine())!=null){
//Do the action that you want to do for each ligne.
//If I well understand you need, split each ligne to give each columns.
}
buff.close();
}
catch (Exception e){
System.out.println(e.toString());
}
それがあなたが必要としていたものであることを願っています。