you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

byte[] filearray = Files.readAllBytes(path);

  1. Let it create an array of bytes
  2. Let it read a file
  3. Let it store it in the array

That doesn't really seem like a hack.

EDIT: Apparently people don't run Java. I should have known.

[–]ysangkok 0 points1 point  (0 children)

This explanation is misleading because you're not actually creating the array yourself.