Date: Tue, 10 Feb 1998 16:20:51 +0100 From: Detlef Beyer <d.beyer@hermes.de> Subject: Re: Text files from different platforms > The problem is that I don't know what char terminates each line on the >text file. This depends on the platform on which the file was originally >composed I guess. > I understand that there are three kinds of text files, MAC, WINTEL and >UNIX. How can I test for that?
13 = CR
10 = LF
on TestPlattform
set testText = the text of field 3
if testText contains numToChar(10) then
if testText contains numToChar(13) then
put "DOS"
else
put "Unix"
end if
else
put "Mac"
end if
end TestPlattform