files in C

I want to create a file tha can access the selective content of other file for ex if i ll declare ip address in one file the it can take the values from other file ?

Post more information on this requirement please. OS, language (C ?), are you root, what pattern ,etc.