[jawsscripts] Problem with StringToFile, Jamal's HSL

  • From: "Brian Hartgen" <jaws@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 22 Nov 2012 14:40:44 -0000

Hi
I have a problem which is baffling me at the moment. For various projects 
available to the community, I use Jamal's Homer Script Library. It is full of 
useful functions and I've used it for years.

However there is one function which is causing a problem. It works fine with 
many jaws versions up to and including 13, but it does not work correctly in 14 
and I do need it to if anyone can please suggest a solution.

The function, StringToFile, writes a string to a text file. In jaws 14, this is 
working fine except that it leaves an extra space character at the end. This 
can be simulated simply as follows:

Assume that homer.jsb is attached via a use statement to your script.

Script test700 ()

saystring ("ok")

var

string temp

let temp = "hello "

let temp = temp +"goodbye"

StringToFile (temp, "c:\\temp\\test.txt")

ã??

ã??

EndScript


This outputs to a text file "hello goodbye", then a space character, rather 
than just having a clean file.

Does anyone have a suggestion as to how I may erase the space character?

Thank you.

Brian Hartgen

__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: