June 2, 20178 yr 4 minutes ago, k9thebeast said: Title, basically a way to do it within the scope of osbot permissions should be able to do it fine generic way as long as it's in the data folder
June 2, 20178 yr private synchronized void writeToFile(String msg) { String fileName = getDirectoryData() + "mytextofnudes.txt"; PrintWriter printWriter = null; File file = new File(fileName); try { if (!file.exists()) file.createNewFile(); printWriter = new PrintWriter(new FileOutputStream(fileName, true)); printWriter.write(newLine + msg); } catch (IOException ioex) { ioex.printStackTrace(); } finally { if (printWriter != null) { printWriter.flush(); printWriter.close(); } } } used an example from stackoverflow and changed the path. just use getDirectoryData() and ur good with osbot
Create an account or sign in to comment