Difference between revisions of "Buffers Tutorial"

From CCIL
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
https://sourceforge.net/p/ccil/code/HEAD/tree/trunk/src/tutorials/files/buffers/
 +
 
TBA
 
TBA
  

Latest revision as of 11:45, 18 May 2017

https://sourceforge.net/p/ccil/code/HEAD/tree/trunk/src/tutorials/files/buffers/

TBA

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