Normal Topic Brainstorming the Linefeed Problem (Read 1821 times)
BWETTLAUFER
Full Member
***
Offline



Posts: 216
Location: Cambridge, Ontario
Joined: Apr 9th, 2010
Brainstorming the Linefeed Problem
Mar 21st, 2019 at 12:44am
Print Post Print Post  
Hey folks!

I was trying to build a calendar invite ICAL file, and sadly @newline() creates a CRLF rather than LF write doing a WriteFile.  This means the ICAL text file isn't mobile friendly.

I am circling back to this problem, and trying to figure out a workaround.  What about using @shell to open a command window, and use @echo or a similar command to write to a text file, inserting LF wherever we need it?

Anyone know how to insert a LF or @chr(13) character through a command line?
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Brainstorming the Linefeed Problem
Reply #1 - Mar 21st, 2019 at 1:23pm
Print Post Print Post  
Hi Blair,

Check your email for the solution that I sent you February 2018.

The underlying issue is that FileOpen() opens the file as ASCII so the line end sequences are made to conform to what the operating system expects. So you need an external program to process the file as binary, which does not muck with line end sequences. That program is in your inbox.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged