Code: Select all
if close > open then begin
FileAppend("C:\Users\Administrator\Documents\text.txt", "HELLO WORLD");
end;
Code: Select all
if close > open then begin
FileAppend("C:\Users\Administrator\Documents\text.txt", "HELLO WORLD");
end;
Code: Select all
Variables:
LogPath(""),
LogFile(""),
;
if currentbar = 1 then
begin
LogFile = "A_VMy_Clone_Lines.txt";
LogPath = "C:\Users\Whatever\Downloads\" + LogFile;
FileAppend(LogPath,
"Here0 - Always check for hidden recalculate." +
" MaxBarsBack=" +
NumToStr(MaxBarsBack,0) +
NewLine);
end;
Make sure your MC has the Right to write to the directory.Im using the code below to test the FileAppend function but nothing seems to happen. No file is created and if i manually create the file nothing is added to it.