k9thebeast Posted June 2, 2017 Posted June 2, 2017 Title, basically a way to do it within the scope of osbot permissions
Isolate Posted June 2, 2017 Posted June 2, 2017 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 1
Alek Posted June 2, 2017 Posted June 2, 2017 getDataDirectory() + /* whatever file structure here */ 1
Chris Posted June 2, 2017 Posted June 2, 2017 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 1 1