Я пытаюсь написать программу на C, в которой мне нужно ввести другой java-файл и найти определенное слово, например class.
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