public void createNewUser(String name, String passwort) {
try {
br = new BufferedReader(new FileReader("Data.txt"));
} catch (FileNotFoundException brCreateError) {
brCreateError.printStackTrace();
}
try {
br.mark(1);
System.out.println(br.readLine());
try {
if(br.readLine()==null) {
noUser=true;
}else {
noUser=false;
}
} catch (IOException e) {
e.printStackTrace();
}
br.reset();
} catch (IOException brMarkError) {
brMarkError.printStackTrace();
} ...
Pourquoi la valeur markedChar change à -2 après avoir passé le instruction if?java.io.IOException: Mark invalide
Thx pour chaque réponse Nico.
Qu'est-ce que 'br'? Qu'est-ce que 'markedChar'? –
Où est marquéChar'? –
Veuillez poster le contexte environnant afin que nous puissions mieux comprendre les variables. – Milk