operation with files
Posted: 07 Feb 2013 13:27
Hi programmerteam,
1)
I'm looking for opening / reading a (ascii/txt-)file as one parameter example = {file_en_bloc}
and also I wanted to search in this {file_en_bloc} a special token (like "firstname lastname").
"scriptcodeidea" for user:
file_en_bloc = loadfile (/mnt/sdcard0/datafile.dat)
a = findcontent ({file_en_bloc}, {token})
a has to be "true" or "false"
2)
I want to open/read a file contains a list with phrases
like
phrase1
phrase2
phrase3
"scriptcodeidea" for user:
phrasefile = loadlistfile (/mnt/sdcard0/datafile.dat)
a = countlines {phrasefile}
b = random [1,a]
c = usecontentline b // as text
-----
Any hints / ideas ?
1)
I'm looking for opening / reading a (ascii/txt-)file as one parameter example = {file_en_bloc}
and also I wanted to search in this {file_en_bloc} a special token (like "firstname lastname").
"scriptcodeidea" for user:
file_en_bloc = loadfile (/mnt/sdcard0/datafile.dat)
a = findcontent ({file_en_bloc}, {token})
a has to be "true" or "false"
2)
I want to open/read a file contains a list with phrases
like
phrase1
phrase2
phrase3
"scriptcodeidea" for user:
phrasefile = loadlistfile (/mnt/sdcard0/datafile.dat)
a = countlines {phrasefile}
b = random [1,a]
c = usecontentline b // as text
-----
Any hints / ideas ?