src/main/constants/MoFunctions.java
// saves the content into a file to the pathFile
saves the content into a file to the pathFile
saves the content into a file to the pathFile
public static void saveFile(String content, String pathFile) throws IOException {
        final Path path = Paths.get(pathFile);
        try (
                final BufferedWriter writer = Files.newBufferedWriter(path,
                        StandardCharsets.UTF_8, StandardOpenOption.CREATE);
        ) {
            writer.write(content);
            writer.flush();
        }
    }
public static void saveFile ( String content , String pathFile ) throws IOException { final Path path = Paths . get ( pathFile ) ; try ( final BufferedWriter writer = Files . newBufferedWriter ( path , StandardCharsets . UTF_8 , StandardOpenOption . CREATE ) ; ) { writer . write ( content ) ; writer . flush ( ) ; } }
saves the content into a file to the pathFile
saves the content into a file to the pathFile