Help with read\write

Hello everyone,

Tomorrow I have a test and some things I did not understand, so I asked you for help.

I'm interested to read something from the file "example.txt" using the command "fopen" and write the on screen upside down? This is just an example, in the main I'm interested in reading and writing of files.

TIP: We use "printf" and "scanf" instead "cout" and "cin"

Thank you in advance.
Last edited on
closed account (Dy7SLyTq)
well... im sure you could do it with ncurses or a gui, but why not use fstream?
I dont really know why we do not use "fstream" but in college we currently only working with "fopen" from "stdio.h"
closed account (Dy7SLyTq)
oh so c stuff? read a tutorial then
Yeah C++, unfortunately I read it several times but nothing has been explained properly, i would post it here but It's on "Croatian"
closed account (Dy7SLyTq)
no c not c++. and then what more do you need to know. just open it get the lines and do what you want with it
Topic archived. No new replies allowed.