我正在尝试用 C 语言编写一个程序,其中我必须接受另一个 java 文件的输入并找到一个特定的单词,例如 class
。
我该怎么做?
最佳答案
. open the file as 'text' for reading
. while end-of-file not reached
. read next line
. parse/analyze line
. if line contains "class"
. here you got the specific word
. close the file
关于c - 在 C 中查找特定单词,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6995320/