View Full Version : What is the difference? FILE_LINEINPUT and FILELINE_LINEINPUT
Michael Hartlef
27-11-2008, 16:58
Hi,
What is the difference between FILE_LINEINPUT and FILELINE_LINEINPUT ?
Thanks for the answer in advance.
Michael
Petr Schreiber
27-11-2008, 17:09
Hi Mike,
FILE_LINEINPUT presumes CRLF end of line, while FILELINE_LINEINPUT accepts CRLF or CR or LF.
ErosOlmi
27-11-2008, 17:09
Well,
the main different is the module and the purpose the module was developed.
FILE module is a general file module working on many kind of files (text and binary) under Windows OS.
FILELINE (http://www.thinbasic.com/public/products/thinBasic/help/html/fileline.htm) module is a module dedicated to text files where you do not know the system where they comes so you are not sure about line terminators: CRLF, CR, LF. This module is specific to this purpose: implements keywords that will let programmer to easily parse text files sequentially reading lines regardless what end of line delimiter is found inside them.
The 2 modules are not interchangeable and cover different targets tasks. FILELINE maitains an internal structure for each open file that is not the same as in FILE module. This structure is used internally to manage line termination and other stuff.
Ciao
Eros
ErosOlmi
27-11-2008, 17:10
Petr you posted 3 secs before me ;D
Petr Schreiber
27-11-2008, 17:12
I was afraid I will not make it fast enough :D,
but your reply is better :)
Mike - there is some info on FileLine module in last Journal.
Petr