Skip to content

FileUtils.readBuffer() sometimes adds a newline at the end #637

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

Closed
LarsEckart opened this issue Mar 17, 2025 · 0 comments
Closed

FileUtils.readBuffer() sometimes adds a newline at the end #637

LarsEckart opened this issue Mar 17, 2025 · 0 comments
Assignees

Comments

@LarsEckart
Copy link
Contributor

Given a file with no trailing new line,
when reading this file with FileUtils.readBuffer
then the result has a trailing new line.

// line 254
      while ((line = in.readLine()) != null)
      {
        string.append(line);
        string.append("\n");
      }
@LarsEckart LarsEckart self-assigned this Mar 17, 2025
@JayBazuzi JayBazuzi changed the title FileUtils.readBuffer asometimes adds a newLine at the end FileUtils.readBuffer() sometimes adds a newline at the end Mar 17, 2025
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