Page 1 of 1

AkelPad.WriteFile

Posted: Thu Jul 02, 2020 5:57 pm
by sexy96
I want to save the path to the running text file.

I wrote this code:
var sFile = “B:\TEMP\info.txt”;
var sEditFile = AkelPad.GetEditFile(0)
sEditFile = AkelPad.GetEditFile(0)
AkelPad.WriteFile(sFile, sEditFile, 1250, 0, 0)

but it saves in the binary file and besides the path many other junk.

What should the code look like to write only the path:
„D:\WinCMD\AkelPad86\AkelFiles\Plugs\Scripts\Test.js”
in file: B:\TEMP\info.txt

What code are scripts.js written here? ECMAScript?

Posted: Thu Jul 02, 2020 6:43 pm
by opk44
sexy96
parameter "nContentLen" is missing (-1):

Code: Select all

var sFile = "C:\\TEMP\\info.txt";
var sEditFile = AkelPad.GetEditFile(0);
AkelPad.WriteFile(sFile, sEditFile, -1, 1250, 0, 0x0); 

Posted: Fri Jul 03, 2020 9:02 am
by sexy96
Thanks.
I don't know if these are java scripts,
but examples from the internet don't work. :D