transferring from c++ to .txt file

Can anyone help me what functions can I use to decode texts?

There is a file named input.txt.

When I press 1, the texts that are in the input.txt will be transferred to the program.

Then after pressing 1, when I press 2, the texts that are encoded into the program from the input.txt will be transferred to the file named output.txt or decoded.txt.

The output.txt or decoded.txt is not yet present, the program will be the one that should create the file.

I already did the encoding part, the 1st part.

Can someone help me with 2?
Do you have a link for library <stdio.h>?

I am not familiar with those library that was included. Thanks!
Do you have a link for library <stdio.h>?

No. You don't need to include <stdio.h> at all, it's some C header. You won't need it.
I mean can I do the 2nd problem with stdio.h? Because I already used stdio.h in the 1st problem
up!
You can open a new file like this: FILE *fp = fopen("sample.txt", "w");

Look at this: http://www.cplusplus.com/reference/clibrary/cstdio/fopen/
Topic archived. No new replies allowed.