Browse Source

testOne

master
amadoubahaa68134 6 years ago
parent
commit
d9d17d11a3
2 changed files with 24 additions and 3 deletions
  1. 23
    3
      src/Credentials.java
  2. 1
    0
      src/assets/Helpers.java

+ 23
- 3
src/Credentials.java View File

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;


public class Credentials { public class Credentials {


String login; String login;


public boolean valid(){ public boolean valid(){


/* String line;
ArrayList<String> result = new ArrayList<String>();
try {
FileReader fr = new FileReader(passwd.txt);
BufferedReader br = new BufferedReader(fr);
while ((line = br.readLine()) != null)
result.add(line);
br.close();
}
catch (IOException e) {
e.printStackTrace();
}
return result.toArray(new String[]{});
*/


return
}
return false;


public static void main{






} }




} }



+ 1
- 0
src/assets/Helpers.java View File



// Schreiben eines Stringarray in eine Textdatei // Schreiben eines Stringarray in eine Textdatei
public static void writeTextdatei(String name, String[] lines) { public static void writeTextdatei(String name, String[] lines) {

try { try {
FileWriter fw = new FileWriter(name); FileWriter fw = new FileWriter(name);
BufferedWriter bw = new BufferedWriter(fw); BufferedWriter bw = new BufferedWriter(fw);

Loading…
Cancel
Save