我正在按字符读取文件,但我想从文件开头跳过字符数。例如这是文件的内容:
你好。按字符阅读内容
FileInputStream fis = new FileInputStream(file);
int skipNumberOfCharacter = 12;
char readCharacter;
int ch;
while ((ch = fis.read()) != -1) {
readCharacter = (char) ch;
System.out.print(readCharacter);
}
当文件处理时,它应该从内容中删除前 12 个字符,并返回输出为:
按字符内容