Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileTools needs EOL parameters in API #12

Open
calvertdw opened this issue Mar 22, 2018 · 0 comments
Open

FileTools needs EOL parameters in API #12

calvertdw opened this issue Mar 22, 2018 · 0 comments

Comments

@calvertdw
Copy link
Member

calvertdw commented Mar 22, 2018

FileTools.writeLines will use CRLF on Windows, need to make the default Unix, with CRLF option.

List<String> lines = FileTools.readAllLines(path, DefaultExceptionHandler.PRINT_STACKTRACE);

PrintWriter printer = FileTools.newPrintWriter(path, WriteOption.TRUNCATE, DefaultExceptionHandler.PRINT_STACKTRACE);
lines.forEach(line -> printer.print(line + "\n"));
printer.close();

Consider how to preserve the new line (i.e. being there or not) at the end of file? Or always write it.

ihmc-rosie pushed a commit that referenced this issue Jun 26, 2018
…ser-friendliness to develop

* commit 'dad566b09b3851c219d997177b487e64ae28217f':
  Check instrumentation early.
  Record static initialization and constructors by default.
  Address a number of usability issues with Allocation recorder. Make AllocationTest abstract, move business logic into new class, AllocationProfiler (for lack of a better name). Add API for both easy one-step record w/ runnable; but also methods for stopping/starting wherever the use wants for more flexibility. Unify naming scheme for whilelist and blacklist (i.e. remove "ignore" and "interest" from language.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant