On Oct 13, 2006, at 6:32 PM, Robert Poland wrote:
On Oct 13, 2006, at 6:19 PM, Norman Palardy wrote:
On Oct 13, 2006, at 6:12 PM, Robert Poland wrote:
Hi,
I have a program that creates a text file.
On the Mac the file created reads as expected. But if I pass
the .txt file to a PC red it and save it then pass it back to the
Mac it has 3 lines of formatting added to the original file.
Could this be normal PC junk or am I doing something wrong?
Robert Poland
[EMAIL PROTECTED]
This might have to do with the fact that a Mac and PC use
different line endings
The Mac uses chr(13) and Windows uses chr(13) + chr(10)
Norman,
I'm splitting into an array with chr(13) and that seems to work.
Here's the first three lines;
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil Courier
New;}}
{\colortbl ;\red0\green0\blue0;}
\viewkind4\uc1\pard\cf1\f0\fs18 EMPLOYEE TIME SHEET\par
I notice that all subsequent lines have a "\par" at the end (I
assume that means paragraph).
REALbasic seem to deal with the "\par" but not with the extra lines.
It's an RTF File ?
This is a LOT more work than just a few lines of text
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>