[texworks] Help please with Integer constants and use in messageboxes
Paul A Norman
paul.a.norman at gmail.com
Sun May 9 11:23:03 CEST 2010
Finally got to the bottom of this - I think it was when I wanted to
pass the path of a file to a TW. system() call to dos, it definitely
seemed to require \..\.. backslashes for Win OS.
So I had it in my head that I needed to change the path delimiters
each time from then on for everything!
On 25 April 2010 21:24, Jonathan Kew <jfkthame at googlemail.com> wrote:
> It's pretty neat that this works; however, I think we should expose a readFile() method to directly read the text of a file, rather than going through the "open document, get text, close document" sequence. That's pretty inefficient, and could become a significant overhead if you were loading a number of script libraries.
> I'm curious whether this:
>> thisLibrary = thisLibrary.replace(/\//g, '\\'); //MS Windows Specific
> is actually needed? Many programs and functions on Windows will accept either \ or / as path separators; did you try it without this conversion?
More information about the texworks