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
    Leverkusen, Germany
    Age
    52
    Posts
    3,283
    Blog Entries
    2
    Rep Power
    340

    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

    Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200.

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,817
    Blog Entries
    3
    Rep Power
    695

    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 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    51
    Posts
    8,311
    Blog Entries
    2
    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/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    51
    Posts
    8,311
    Blog Entries
    2
    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/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  5. #5
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,817
    Blog Entries
    3
    Rep Power
    695

    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 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

Similar Threads

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

Posting Permissions

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