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?
AkelPad.WriteFile
- Author
- Message
-
Offline
- Posts: 874
- Joined: Sat Jan 16, 2010 2:03 pm
sexy96
parameter "nContentLen" is missing (-1):
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);