Hi Richard,
I don't know how you are uploading the data to the remote server, but
probably you don't need to use "binfile". Just use macToIso to convert
the data, replace cr with crlf and upload your data.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other
colour spaces. http://www.color-converter.com
Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi
Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/
On 8/25/2013 23:12, Dr. Hawkins wrote:
On Sun, Aug 25, 2013 at 1:55 PM, Mark Schonewille
<m.schonewi...@economy-x-talk.com> wrote:
When not on Mac OS X, you need to replace linefeed with crlf, convert text
to ISO and write the file as binfile, e.g.
put fld 1 into myVar
put macToIso(myVar) into myVar
replace lf with crlf in myVar
put myVar into url "binfile:~/desktop/file.txt"
It's not so much not on macos, but that this runs on macos, but the
remote system apparently expects dos (I *assume* they actually run
unix, but the thing is so sloppy that a server on windows wouldn't
surprise me . . .)
My code needs to produce a file that can be sent to this remote system
regardless of my host os.
So would I use mactoiso & binfile like this on osx and linux, but just
the filed and file if running on the dark side?
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode