java.lang.Object
ch.ladestation.connectncharge.services.file.TextFileEditor

public final class TextFileEditor extends Object
  • Method Details

    • readLevels

      public static Map<Integer,List<Object>> readLevels()
    • readPlayerDataFromFile

      public static List<Player> readPlayerDataFromFile(String filePath)
      This method takes the data from the player file if there is one.
      Parameters:
      filePath -
      Returns:
      a list of saved players.
    • writeTextFile

      public static void writeTextFile(String filePath, List<String> lines)
      This method writes to the defined file given by the parameter files.
      Parameters:
      filePath -
      lines -
    • getAdminCode

      public static String getAdminCode()