2021
02-21
02-21
java 如何读取远程主机文件
我就废话不多说了,大家还是直接看代码吧~packagecom.cloudtech.web.util;importjava.io.BufferedReader;importjava.io.File;importjava.io.FileInputStream;importjava.io.IOException;importjava.io.InputStreamReader;importcom.cloudtech.web.entity.Role;publicclassRoleUtil{publicstaticvoidreadFile(StringsourceFilePath,Stringencode)throwsIOException{Filefile=newFile(sourceFilePath)...
继续阅读 >