k9thebeast Posted June 2, 2017 Share Posted June 2, 2017 Title, basically a way to do it within the scope of osbot permissions Quote Link to comment Share on other sites More sharing options...
Isolate Posted June 2, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
Alek Posted June 2, 2017 Share Posted June 2, 2017 getDataDirectory() + /* whatever file structure here */ 1 Quote Link to comment Share on other sites More sharing options...
Chris Posted June 2, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
k9thebeast Posted June 2, 2017 Author Share Posted June 2, 2017 Ahhhhh data folder thanks Quote Link to comment Share on other sites More sharing options...