AMOS:Reading textfiles

From Amiga Coding
Jump to: navigation, search

AMOS on default uses two characters to tell where a line end, while Amiga texteditors usually use only one character (line feed). So to read a textfile which was created on an Amiga use:

Set Input 10,-1


Common used newline codes

Operating systems differ in which characters they use to tell where a line ends.
In this table you see a list of the most common combinations and what arguments to use for Set Input to be able to read those textfiles:

Operating systemAMOScharacter names
Amiga/Linux/MAC OS XSet Input 10,-1(LF)
Atari/MSDOS/WindowsSet Input 13,10(CR+LF) (AMOS default)
C64Set Input 13,-1(CR)


Links