我正在尝试开发一个可以读取文件的应用程序。但我不知道如何改变阅读器指针的位置,请帮忙?
for(int i=0; i<tab.length; i++){
char cbuf[] = new char[tab[i]];
try {
InputStream ips=new FileInputStream(fichier);
InputStreamReader ipsr=new InputStreamReader(ips);
BufferedReader br=new BufferedReader(ipsr);
//I need to change the position of the pointer here
br.read(cbuf, 0, tab[i]);
tabS[i] = new String(cbuf);
System.out.println(tabS[i]);
br.close();
} catch (Exception e){
System.out.println(e.toString());
}
}