
java 读取txt文件内容,并写入bean中
有这样一个txt文件,文件内容为:sharename:abcdsharepath:c/abeenabled:Nosystemstate:formatted=yesmoun...
有这样一个txt文件,文件内容为:
share name: abcd
share path:c/
abe enabled:No
system state:
formatted = yes
mounted = yes
share name:efgh
share path:d/
abe enabled:yes
system stated:
formatted = yes
mounted = no
现在我想把txt文件内容读取并写入bean中,怎么写代码啊?我现在已经可以读取出来了,但是怎么写入bean中?新人求教 展开
share name: abcd
share path:c/
abe enabled:No
system state:
formatted = yes
mounted = yes
share name:efgh
share path:d/
abe enabled:yes
system stated:
formatted = yes
mounted = no
现在我想把txt文件内容读取并写入bean中,怎么写代码啊?我现在已经可以读取出来了,但是怎么写入bean中?新人求教 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询