Hi to all (and sorry for my English),
The ReadFile function opens a file in a read only mode, but if another program (like notepad) opens the same file and tries to save it, Windows does not allow it.
Anybody knows if is possible avoid this or how to perform the same in other way?
Thanks in advance.
Regards
ReadFile function
ReadFile function
The PB community is great... nice to meet you!
Re: ReadFile function
Take a look on this code to open the file "non-exclusively":
http://www.purebasic.fr/english/viewtop ... 92#p316992
http://www.purebasic.fr/english/viewtop ... 92#p316992
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Re: ReadFile function
em_uk wrote:Close the file after you have read your data.


The problem is that both programs can access the same file at the same time.
The PB community is great... nice to meet you!
Re: ReadFile function
Thank you c4s, I think this is what I need.c4s wrote:Take a look on this code to open the file "non-exclusively":
http://www.purebasic.fr/english/viewtop ... 92#p316992
The PB community is great... nice to meet you!