📅  最后修改于: 2022-03-11 14:52:19.146000             🧑  作者: Mango
import java.io.File;
import java.nio.file.Files;
File file;
// ...(file is initialised)...
byte[] fileContent = Files.readAllBytes(file.toPath());