From the docs under "return":

The line feed character is the standard end-of-line delimiter on Unix systems. The end-of-line delimiter for Mac OS systems is a carriage return, and the end-of-line delimiter for Windows systems is a carriage return followed by a line feed. Internally, Revolution always uses a line feed to end lines.

I would guess that your Windows machine is ending each line with CRLF which translates to 2 linefeeds on Solaris.
Try:
put fld "test" into theData
replace numToChar(13) with empty in theData


Then send it and see what happens.

Cheers,
Sarah


On 21 Jan 2005, at 8:04 am, Glen Bojsza wrote:

I have had some success in writing lines to a file from a Windows XP
machine to a Solaris machine.

Unfortunately, there is an additional blank line after every line I write.

The data in the field "test" on the Windows machine is:

hostname
address
user

once written to a file on the Solaris machine via serial connection it
appears as:

hostname

address

user

Is there a method to not have the additional returns? I

on mouseUp
put the fld "test" into theData
write theData to file theSerialPort
end mouseUp

thanks
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution




_______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to