Read and write file using c

Is there something like Java I/O in C? where I can read a .txt file then write to it? Can anyone give me the simplest form of example in C++?

Topic archived. No new replies allowed.