Results 1 to 5 of 5

Thread: What is the difference? FILE_LINEINPUT and FILELINE_LINEINPUT

  1. #1
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    58
    Posts
    3,299
    Rep Power
    348

    What is the difference? FILE_LINEINPUT and FILELINE_LINEINPUT

    Hi,

    What is the difference between FILE_LINEINPUT and FILELINE_LINEINPUT ?

    Thanks for the answer in advance.
    Michael


  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736

    Re: What is the difference? FILE_LINEINPUT and FILELINE_LINEINPUT

    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

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: What is the difference? FILE_LINEINPUT and FILELINE_LINEINPUT

    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

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: What is the difference? FILE_LINEINPUT and FILELINE_LINEINPUT

    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

  5. #5
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736

    Re: What is the difference? FILE_LINEINPUT and FILELINE_LINEINPUT

    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

Similar Threads

  1. what's the difference
    By sandyrepope in forum UI (User Interface)
    Replies: 3
    Last Post: 14-01-2008, 23:17

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •