fenugrec
Fri, 12 Feb 2021 18:30:25 GMT
Hi, Yes, it's possible with the upcoming version of Telosys with the *"$file"* object. For example for a CSV file : --- #set( $file = $fn.fileFromBundle("enum-csv.txt") ) #set( $lines = $file.loadValues(",", 1) ) enum State { #foreach ( $line in $lines ) $line.get(0) = $line.get(1)#if( $foreach.count < $lines.size() ) , #else } #end #end --- If you want to use it right now I can give you a pre-version of Telosys-CLI (the official release 3.3.0 is comming soon)
(sorry, never got a notification for your reply). Thanks, I'll check it out when 3.3 is available on my distro !
Telosys 3.3.0 is available. See how to use files here : https://news.telosys.org/telosys-version-330/templates-features#files-usage