Hi Mike,
FILE_LINEINPUT presumes CRLF end of line, while FILELINE_LINEINPUT accepts CRLF or CR or LF.
Hi,
What is the difference between FILE_LINEINPUT and FILELINE_LINEINPUT ?
Thanks for the answer in advance.
Michael
Hi Mike,
FILE_LINEINPUT presumes CRLF end of line, while FILELINE_LINEINPUT accepts CRLF or CR or LF.
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
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 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
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Petr you posted 3 secs before me ;D
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
I was afraid I will not make it fast enough ,
but your reply is better
Mike - there is some info on FileLine module in last Journal.
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Bookmarks