AkelPad.WriteFile

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

AkelPad.WriteFile

Post 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?

Offline
Posts: 874
Joined: Sat Jan 16, 2010 2:03 pm

Post 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); 

Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

Post by sexy96 »

Thanks.
I don't know if these are java scripts,
but examples from the internet don't work. :D
Post Reply