テキストファイルを読み込むアンドロイドアプリケーションを構築しています。 今、私はsdcardに複数のテキストファイルを持っています。私は、ユーザーがファイルのいずれかを選択すると、選択したファイルが読み取られることを望むabc.txt def.txt ghi.txtAndroidのユーザー選択でテキストファイルを動的に読む
:ファイルの 場所は/ SDカード/テキストファイル/
ファイル名です。 私はそのabc.txtのファイルへのパスが定義されている すなわち
File sdcard = Environment.getExternalStorageDirectory();
File file = new File(sdcard,pathtofile);
BufferedReader br = new BufferedReader(new FileReader(file));
pathtofile店単一のファイルを読み込むためのコードを知っています。私はpathtofile
ありがとうございますekouchiq – ProgramME