Error on https://www.mql5.com/en/articles/2720#z0

 

Creating a text file

In order to create a file, open it using the FileOpen() function. Open the "test.txt" file using the FILE_READ flag instead of the FILE_WRITE one:

int h=FileOpen("test.txt",FILE_WRITE|FILE_ANSI|FILE_TXT);


It should be FILE_WRITE flag instead of the FILE_READ one:

 
Then don't you think, you should have posted your comment on that Article's discussion board and not here in the general forum?
Discussion of article "MQL5 Programming Basics: Files"
Discussion of article "MQL5 Programming Basics: Files"
  • 2016.11.04
  • www.mql5.com
New article MQL5 Programming Basics: Files has been published: Author: Dmitry Fedoseev...
Reason: