开发者

How to read input word by word in FreePascal?

I would like to read from standard input word by word (i.e., the input string is always a collection of words separated with blanks). Now I'm using the rea开发者_开发百科d function and I read the input char by char.

Is it possible? Thanks!


With readln (readline) you can read a whole line that you can split into separate words. There is no function to read words from a file.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜