It is possible?
#4

Yes you can. You can also write to it while it is opened in another handle, but only the text of the last time you close it will save.

Eg. you open a file twice in write mode.
In the first you write "hello", and the second "test".

When you close the first one, "hello" will be stored, and when you close the second "test" will be stored and overwrite the previously stored content.

You can also open the same file twice and write different stuff in both, then use fseek and read the individual content of it. You will basically have 2 different files from which you can read/write, but upon closing it will overwrite.

This is for Windows, there might be a different behaviour on Linux!
Reply


Messages In This Thread
It is possible? - by Widoh - 11.11.2017, 22:53
Re: It is possible? - by adammal - 11.11.2017, 23:07
Re: It is possible? - by Meller - 11.11.2017, 23:12
Re: It is possible? - by NaS - 12.11.2017, 00:57

Forum Jump:


Users browsing this thread: 1 Guest(s)