how can i read this file!?

how can i read this file

file.text
 
    names "admin"

lets say i have file called file.text

i want to read the "admin" string

how can i do it with c++: names should be static

if names is there then read "admin"


thanks for help
Last edited on
Topic archived. No new replies allowed.