Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File / port cconventions and use
#2
Can LOF(1) be used in this case?

Store what the previous LOF was, check against it, and if the current LOF is longer then read the info.

Code: (Select All)
'only a pseudo-type concept of code flow I'm thinking of

L = LOF(1)
DO
   LF1 = LOF(1) 'to store lof once per read and see if there's new data
   IF LF1 > L THEN  'there's new data
      a$ = SPACE$(LF1 - L +1)  'set a string to the size of the new data
      GET #1, , a$  'this should be the whole data read in one pass.  
      L = LF1 'L is now the new LOF(1)
   END IF
   'do whatever with a$
LOOP

(+1 may not be needed above when sizing for a$)
Reply


Messages In This Thread
File / port cconventions and use - by Parkland - 03-30-2025, 12:31 AM
RE: File / port cconventions and use - by SMcNeill - 03-30-2025, 12:46 AM
RE: File / port cconventions and use - by Pete - 03-30-2025, 01:52 AM
RE: File / port cconventions and use - by Pete - 03-30-2025, 02:49 AM
RE: File / port cconventions and use - by Pete - 03-30-2025, 03:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error when inputting ASCII text from COM port MichelleL 11 1,927 01-24-2024, 08:01 AM
Last Post: mdijkens
  BIOS com port eoredson 9 1,975 09-08-2023, 04:37 PM
Last Post: DSMan195276
  Comm and VCSP port twiddling controls sigs doppler 2 862 06-08-2023, 07:19 PM
Last Post: doppler
  _OPENHOST to port 443 fails jleger2023 9 1,905 01-19-2023, 08:20 PM
Last Post: SpriggsySpriggs

Forum Jump:


Users browsing this thread: 1 Guest(s)