Difference between revisions of "Buffers Tutorial"

From CCIL
Jump to: navigation, search
(Created page with "== The application context == <pre> # CCIL Buffers tutorial #------------------------------------- context.title=Counters tutorial context.description=Introducing the very ba...")
 
Line 1: Line 1:
 +
==== files ====
 +
 +
list_of_items.txt
 +
<pre>
 +
this is line 1
 +
this is line 2
 +
this is line 3
 +
this is line 4
 +
this is line 5
 +
</pre>
 +
 
== The application context ==
 
== The application context ==
 
<pre>
 
<pre>

Revision as of 11:30, 18 May 2017

files

list_of_items.txt

this is line 1
this is line 2
this is line 3
this is line 4
this is line 5

The application context

# CCIL Buffers tutorial
#-------------------------------------

context.title=Counters tutorial
context.description=Introducing the very basics of CCIL - buffers
context.author=Atanas Ilchev
context.comment=
context.thumbnail = media/logo.png

context.step1.pipeline = READ,SPLIT

# step 1    --------------------------

READ = readfile
READ.file = hello.txt
READ.output = msg

SPLIT = split-basic
SPLIT.mode = split
SPLIT.input = msg
SPLIT.output = lines	


# convert the String[] to buffer

# append text to each element

# step 4	--------------------------

APPEND = append-text
APPEND.text = (step 4)
APPEND.input = msg
APPEND.output = msg

WRITE = writefile
WRITE.input = msg
WRITE.file = * hello_from_step4.txt
WRITE.append = true
WRITE.separator = {NL}
WRITE.encoding = utf-8