method parsefile
1 | class Grammar |
1.1 | (Grammar) method parsefile |
Documentation for method parsefile
assembled from the following types:
class Grammar
From Grammar
(Grammar) method parsefile
Defined as:
method parsefile(Str(Cool) , :, *)
Reads file $filename
encoding by $enc
, and parses it. All named arguments are passed on to method parse.
say Identifiers.parsefile('users.txt', :enc('UTF-8')).Str.trim.subst(/\n/, ',', :g);# users.txt :# TimToady# lizmat# jnthn# moritz# zoffixznet# MasterDuke17# OUTPUT : «TimToady,lizmat,jnthn,moritz,zoffixznet,MasterDuke17»