Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getFile return the number of lines (SOLVED)
#2
Macro Macro48
Code:
Copy      Help
;; if using string
int i=numlines(fileTxt)
out i ;; number of lines stored in 'i', now just output 'i'


;; if using array
ARRAY(str) a
a[]="x"
a[]="y"
a[]="z"
_s=a

out numlines(_s) ;; contents of array 'a' has been put in string '_s', now you can output number of lines in '_s'
out a.len ;; or just directly output the number of items in array 'a'


Messages In This Thread
RE: getFile return the number of lines (SOLVED) - by r0n - 02-28-2020, 04:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)