开发者

read from file with a delimiter

开发者 https://www.devze.com 2023-02-23 13:09 出处:网络
i want to know how can i read from file in java until the file pointer arrives at a delimiter or 开发者_如何学JAVAspecific number ofcharacters.

i want to know how can i read from file in java until the file pointer arrives at a delimiter or 开发者_如何学JAVAspecific number of characters.

in c++ i used from getline().


Well you can use BufferedReader.readLine(), or maybe the Scanner class.

0

精彩评论

暂无评论...
验证码 换一张
取 消