aamir_faried
8th October 2010, 12:09
Hi guys,

I have a problem with new line character while using seq.puts() function.

Our development server is windows base while our client has Linux/Unix based server.

seq.puts() function works fine on our server but it does not put new line characters of Unix/Linux. Later on, i came to know that we have to use 'new line character' to insert line break.

Here is my question: Is there any in BAAN to know about our current environment (windows or linux/unix) so we can put relatively new line character. i.e. how to know baan underlying Operation System

Thanks
/Aamir

Juergen
8th October 2010, 13:09
Hi Aamir,

maybe the simple old function ostype() can help.
Please see the programmers guide.

Regards,
Juergen

wiggum
25th October 2010, 18:43
Usually it should not be necessary to know the underlying OS. Open your sequential file with "t" added to the open mode and LN will use CR/LF on Windows systems and only LF on UNIX systems automatically.