>>> *** Source:
    func Cleanse(src) := src->Replace("\u000D", "");
    // UDF to drop directories before "Data" in a path.
    func Clean(path) := path[path->LastIndexOf("Data") : ]->Replace("\\", "/");
    "*** ReadText ***";
    finish R as ReadText(_DATA_ & "Presidents.rexl");
    (R$Finished, R$Failed, R$ResultNames);
    R.Link.Path->Clean();
    T := R.Data->Cleanse();
    T.Len;
    T;
    "*** ReadLines ***";
    finish R as ReadLines(_DATA_ & "Presidents.rexl");
    (R$Finished, R$Failed, R$ResultNames);
    (R.Link.Path->Clean(), R.LineCount);
    R.Data->Count();
    R.Data->Sum(Len + 1);
    R.Data;

>>> *** Instructions:
   0) [0] DefineFunc Cleanse(src) <- src->Replace("\r", "")
   1) [0] DefineFunc Clean(path) <- path[path->LastIndexOf("Data"):]->Replace("\\", "/")
   2) [0] Expr "*** ReadText ***"
   3) [0] TaskProc finish R as ReadText(_DATA_ & "Presidents.rexl")
   4) [0] Expr (R$Finished, R$Failed, R$ResultNames)
   5) [0] Expr R.Link.Path->Clean()
   6) [0] Define T <- R.Data->Cleanse()
   7) [0] Expr T.Len
   8) [0] Expr T
   9) [0] Expr "*** ReadLines ***"
  10) [0] TaskProc finish R as ReadLines(_DATA_ & "Presidents.rexl")
  11) [0] Expr (R$Finished, R$Failed, R$ResultNames)
  12) [0] Expr (R.Link.Path->Clean(), R.LineCount)
  13) [0] Expr R.Data->Count()
  14) [0] Expr R.Data->Sum(Len + 1)
  15) [0] Expr R.Data
  16) [0] End

>    0) [0] DefineFunc Cleanse(src) <- src->Replace("\r", "")
UDF 'Cleanse' has arity 1
>    1) [0] DefineFunc Clean(path) <- path[path->LastIndexOf("Data"):]->Replace("\\", "/")
UDF 'Clean' has arity 1
>    2) [0] Expr "*** ReadText ***"
*** ReadText ***
>    3) [0] TaskProc finish R as ReadText(_DATA_ & "Presidents.rexl")
Task 'R' added
Task 'R' now playing
Task 'R' finished
>    4) [0] Expr (R$Finished, R$Failed, R$ResultNames)
(true, false, (Link, FullLink, Data))
>    5) [0] Expr R.Link.Path->Clean()
Data/Presidents.rexl
>    6) [0] Define T <- R.Data->Cleanse()
Global 'T' has DType: s, SysType: str
>    7) [0] Expr T.Len
8794
>    8) [0] Expr T
Presidents :=
[
{ N:  1, TBeg: Date(1789, 04, 30), TEnd: Date(1797, 03, 04), NFirst: "George",                          NLast: "Washington",    Party: "",                      Vice: "John Adams",             },
{ N:  2, TBeg: Date(1797, 03, 04), TEnd: Date(1801, 03, 04), NFirst: "John",                            NLast: "Adams",         Party: "Federalist",            Vice: "Thomas Jefferson",       },
{ N:  3, TBeg: Date(1801, 03, 04), TEnd: Date(1809, 03, 04), NFirst: "Thomas",                          NLast: "Jefferson",     Party: "Democratic-Republican", Vice: "Aaron Burr",             },
{ N:  4, TBeg: Date(1809, 03, 04), TEnd: Date(1817, 03, 04), NFirst: "James",                           NLast: "Madison",       Party: "Democratic-Republican", Vice: "George Clinton",         },
{ N:  5, TBeg: Date(1817, 03, 04), TEnd: Date(1825, 03, 04), NFirst: "James",                           NLast: "Monroe",        Party: "Democratic-Republican", Vice: "Daniel D. Tompkins",     },
{ N:  6, TBeg: Date(1825, 03, 04), TEnd: Date(1829, 03, 04), NFirst: "John",         NMid: "Quincy",    NLast: "Adams",         Party: "Democratic-Republican", Vice: "John C. Calhoun",        },
{ N:  7, TBeg: Date(1829, 03, 04), TEnd: Date(1837, 03, 04), NFirst: "Andrew",                          NLast: "Jackson",       Party: "Democratic",            Vice: "John C. Calhoun",        },
{ N:  8, TBeg: Date(1837, 03, 04), TEnd: Date(1841, 03, 04), NFirst: "Martin",                          NLast: "Van Buren",     Party: "Democratic",            Vice: "Richard Mentor Johnson", },
{ N:  9, TBeg: Date(1841, 03, 04), TEnd: Date(1841, 04, 04), NFirst: "William",      NMid: "Henry",     NLast: "Harrison",      Party: "Whig",                  Vice: "John Tyler",             },
{ N: 10, TBeg: Date(1841, 04, 04), TEnd: Date(1845, 03, 04), NFirst: "John",                            NLast: "Tyler",         Party: "Whig",                  Vice: "",                       },
{ N: 11, TBeg: Date(1845, 03, 04), TEnd: Date(1849, 03, 04), NFirst: "James",        NMid: "K.",        NLast: "Polk",          Party: "Democratic",            Vice: "George M. Dallas",       },
{ N: 12, TBeg: Date(1849, 03, 04), TEnd: Date(1850, 07, 09), NFirst: "Zachary",                         NLast: "Taylor",        Party: "Whig",                  Vice: "Millard Fillmore",       },
{ N: 13, TBeg: Date(1850, 07, 09), TEnd: Date(1853, 03, 04), NFirst: "Millard",                         NLast: "Fillmore",      Party: "Whig",                  Vice: "",                       },
{ N: 14, TBeg: Date(1853, 03, 04), TEnd: Date(1857, 03, 04), NFirst: "Franklin",                        NLast: "Pierce",        Party: "Democratic",            Vice: "William R. King",        },
{ N: 15, TBeg: Date(1857, 03, 04), TEnd: Date(1861, 03, 04), NFirst: "James",                           NLast: "Buchanan",      Party: "Democratic",            Vice: "John C. Breckinridge",   },
{ N: 16, TBeg: Date(1861, 03, 04), TEnd: Date(1865, 04, 15), NFirst: "Abraham",                         NLast: "Lincoln",       Party: "Republican",            Vice: "Hannibal Hamlin",        },
{ N: 17, TBeg: Date(1865, 04, 15), TEnd: Date(1869, 03, 04), NFirst: "Andrew",                          NLast: "Johnson",       Party: "Democratic",            Vice: "",                       },
{ N: 18, TBeg: Date(1869, 03, 04), TEnd: Date(1877, 03, 04), NFirst: "Ulysses",      NMid: "S.",        NLast: "Grant",         Party: "Republican",            Vice: "Schuyler Colfax",        },
{ N: 19, TBeg: Date(1877, 03, 04), TEnd: Date(1881, 03, 04), NFirst: "Rutherford",   NMid: "B.",        NLast: "Hayes",         Party: "Republican",            Vice: "William A. Wheeler",     },
{ N: 20, TBeg: Date(1881, 03, 04), TEnd: Date(1881, 09, 19), NFirst: "James",        NMid: "A.",        NLast: "Garfield",      Party: "Republican",            Vice: "Chester A. Arthur",      },
{ N: 21, TBeg: Date(1881, 09, 19), TEnd: Date(1885, 03, 04), NFirst: "Chester",      NMid: "A.",        NLast: "Arthur",        Party: "Republican",            Vice: "",                       },
{ N: 22, TBeg: Date(1885, 03, 04), TEnd: Date(1889, 03, 04), NFirst: "Grover",                          NLast: "Cleveland",     Party: "Democratic",            Vice: "Thomas A. Hendricks",    },
{ N: 23, TBeg: Date(1889, 03, 04), TEnd: Date(1893, 03, 04), NFirst: "Benjamin",                        NLast: "Harrison",      Party: "Republican",            Vice: "Levi P. Morton",         },
{ N: 24, TBeg: Date(1893, 03, 04), TEnd: Date(1897, 03, 04), NFirst: "Grover",                          NLast: "Cleveland",     Party: "Democratic",            Vice: "Adlai Stevenson",        },
{ N: 25, TBeg: Date(1897, 03, 04), TEnd: Date(1901, 09, 14), NFirst: "William",                         NLast: "McKinley",      Party: "Republican",            Vice: "Garret Hobart",          },
{ N: 26, TBeg: Date(1901, 09, 14), TEnd: Date(1909, 03, 04), NFirst: "Theodore",                        NLast: "Roosevelt",     Party: "Republican",            Vice: "",                       },
{ N: 27, TBeg: Date(1909, 03, 04), TEnd: Date(1913, 03, 04), NFirst: "William",      NMid: "Howard",    NLast: "Taft",          Party: "Republican",            Vice: "James S. Sherman",       },
{ N: 28, TBeg: Date(1913, 03, 04), TEnd: Date(1921, 03, 04), NFirst: "Woodrow",                         NLast: "Wilson",        Party: "Democratic",            Vice: "Thomas R. Marshall",     },
{ N: 29, TBeg: Date(1921, 03, 04), TEnd: Date(1923, 08, 02), NFirst: "Warren",       NMid: "G.",        NLast: "Harding",       Party: "Republican",            Vice: "Calvin Coolidge",        },
{ N: 30, TBeg: Date(1923, 08, 02), TEnd: Date(1929, 03, 04), NFirst: "Calvin",                          NLast: "Coolidge",      Party: "Republican",            Vice: "",                       },
{ N: 31, TBeg: Date(1929, 03, 04), TEnd: Date(1933, 03, 04), NFirst: "Herbert",                         NLast: "Hoover",        Party: "Republican",            Vice: "Charles Curtis",         },
{ N: 32, TBeg: Date(1933, 03, 04), TEnd: Date(1941, 01, 20), NFirst: "Franklin",     NMid: "D.",        NLast: "Roosevelt",     Party: "Democratic",            Vice: "John Nance Garner",      },
{ N: 33, TBeg: Date(1945, 04, 12), TEnd: Date(1953, 01, 20), NFirst: "Harry",        NMid: "S.",        NLast: "Truman",        Party: "Democratic",            Vice: "",                       },
{ N: 34, TBeg: Date(1953, 01, 20), TEnd: Date(1961, 01, 20), NFirst: "Dwight",       NMid: "D.",        NLast: "Eisenhower",    Party: "Republican",            Vice: "Richard Nixon",          },
{ N: 35, TBeg: Date(1961, 01, 20), TEnd: Date(1963, 11, 22), NFirst: "John",         NMid: "F.",        NLast: "Kennedy",       Party: "Democratic",            Vice: "Lyndon B. Johnson",      },
{ N: 36, TBeg: Date(1963, 11, 22), TEnd: Date(1969, 01, 20), NFirst: "Lyndon",       NMid: "B.",        NLast: "Johnson",       Party: "Democratic",            Vice: "",                       },
{ N: 37, TBeg: Date(1969, 01, 20), TEnd: Date(1974, 08, 09), NFirst: "Richard",                         NLast: "Nixon",         Party: "Republican",            Vice: "Spiro Agnew",            },
{ N: 38, TBeg: Date(1974, 08, 09), TEnd: Date(1977, 01, 20), NFirst: "Gerald",                          NLast: "Ford",          Party: "Republican",            Vice: "",                       },
{ N: 39, TBeg: Date(1977, 01, 20), TEnd: Date(1981, 01, 20), NFirst: "Jimmy",                           NLast: "Carter",        Party: "Democratic",            Vice: "Walter Mondale",         },
{ N: 40, TBeg: Date(1981, 01, 20), TEnd: Date(1989, 01, 20), NFirst: "Ronald",       NMid: "W.",        NLast: "Reagan",        Party: "Republican",            Vice: "George H. W. Bush",      },
{ N: 41, TBeg: Date(1989, 01, 20), TEnd: Date(1993, 01, 20), NFirst: "George",       NMid: "H. W.",     NLast: "Bush",          Party: "Republican",            Vice: "Dan Quayle",             },
{ N: 42, TBeg: Date(1993, 01, 20), TEnd: Date(2001, 01, 20), NFirst: "Bill",                            NLast: "Clinton",       Party: "Democratic",            Vice: "Al Gore",                },
{ N: 43, TBeg: Date(2001, 01, 20), TEnd: Date(2009, 01, 20), NFirst: "George",       NMid: "W.",        NLast: "Bush",          Party: "Republican",            Vice: "Dick Cheney",            },
{ N: 44, TBeg: Date(2009, 01, 20), TEnd: Date(2017, 01, 20), NFirst: "Barack",       NMid: "H.",        NLast: "Obama",         Party: "Democratic",            Vice: "Joe Biden",              },
{ N: 45, TBeg: Date(2017, 01, 20), TEnd: Date(2021, 01, 20), NFirst: "Donald",       NMid: "J.",        NLast: "Trump",         Party: "Republican",            Vice: "Mike Pence",             },
];

>    9) [0] Expr "*** ReadLines ***"
*** ReadLines ***
>   10) [0] TaskProc finish R as ReadLines(_DATA_ & "Presidents.rexl")
Overwriting task: R
Task 'R' added
Task 'R' now playing
Task 'R' finished
>   11) [0] Expr (R$Finished, R$Failed, R$ResultNames)
(true, false, (Link, FullLink, LineCount, SData, Data))
>   12) [0] Expr (R.Link.Path->Clean(), R.LineCount)
(Data/Presidents.rexl, 48)
>   13) [0] Expr R.Data->Count()
48
*** Ctx ping count: 0
>   14) [0] Expr R.Data->Sum(Len + 1)
8794
*** Ctx ping count: 49
    [0](49): Sum(*1: R.Data, Add(Text.Len(*1), 1))
>   15) [0] Expr R.Data
Seq<str>
   0) Presidents :=
   1) [
   2) { N:  1, TBeg: Date(1789, 04, 30), TEnd: Date(1797, 03, 04), NFirst: "George",                          NLast: "Washington",    Party: "",                      Vice: "John Adams",             },
   3) { N:  2, TBeg: Date(1797, 03, 04), TEnd: Date(1801, 03, 04), NFirst: "John",                            NLast: "Adams",         Party: "Federalist",            Vice: "Thomas Jefferson",       },
   4) { N:  3, TBeg: Date(1801, 03, 04), TEnd: Date(1809, 03, 04), NFirst: "Thomas",                          NLast: "Jefferson",     Party: "Democratic-Republican", Vice: "Aaron Burr",             },
   5) { N:  4, TBeg: Date(1809, 03, 04), TEnd: Date(1817, 03, 04), NFirst: "James",                           NLast: "Madison",       Party: "Democratic-Republican", Vice: "George Clinton",         },
   6) { N:  5, TBeg: Date(1817, 03, 04), TEnd: Date(1825, 03, 04), NFirst: "James",                           NLast: "Monroe",        Party: "Democratic-Republican", Vice: "Daniel D. Tompkins",     },
   7) { N:  6, TBeg: Date(1825, 03, 04), TEnd: Date(1829, 03, 04), NFirst: "John",         NMid: "Quincy",    NLast: "Adams",         Party: "Democratic-Republican", Vice: "John C. Calhoun",        },
   8) { N:  7, TBeg: Date(1829, 03, 04), TEnd: Date(1837, 03, 04), NFirst: "Andrew",                          NLast: "Jackson",       Party: "Democratic",            Vice: "John C. Calhoun",        },
   9) { N:  8, TBeg: Date(1837, 03, 04), TEnd: Date(1841, 03, 04), NFirst: "Martin",                          NLast: "Van Buren",     Party: "Democratic",            Vice: "Richard Mentor Johnson", },
  10) { N:  9, TBeg: Date(1841, 03, 04), TEnd: Date(1841, 04, 04), NFirst: "William",      NMid: "Henry",     NLast: "Harrison",      Party: "Whig",                  Vice: "John Tyler",             },
  11) { N: 10, TBeg: Date(1841, 04, 04), TEnd: Date(1845, 03, 04), NFirst: "John",                            NLast: "Tyler",         Party: "Whig",                  Vice: "",                       },
  12) { N: 11, TBeg: Date(1845, 03, 04), TEnd: Date(1849, 03, 04), NFirst: "James",        NMid: "K.",        NLast: "Polk",          Party: "Democratic",            Vice: "George M. Dallas",       },
  13) { N: 12, TBeg: Date(1849, 03, 04), TEnd: Date(1850, 07, 09), NFirst: "Zachary",                         NLast: "Taylor",        Party: "Whig",                  Vice: "Millard Fillmore",       },
  14) { N: 13, TBeg: Date(1850, 07, 09), TEnd: Date(1853, 03, 04), NFirst: "Millard",                         NLast: "Fillmore",      Party: "Whig",                  Vice: "",                       },
  15) { N: 14, TBeg: Date(1853, 03, 04), TEnd: Date(1857, 03, 04), NFirst: "Franklin",                        NLast: "Pierce",        Party: "Democratic",            Vice: "William R. King",        },
  16) { N: 15, TBeg: Date(1857, 03, 04), TEnd: Date(1861, 03, 04), NFirst: "James",                           NLast: "Buchanan",      Party: "Democratic",            Vice: "John C. Breckinridge",   },
  17) { N: 16, TBeg: Date(1861, 03, 04), TEnd: Date(1865, 04, 15), NFirst: "Abraham",                         NLast: "Lincoln",       Party: "Republican",            Vice: "Hannibal Hamlin",        },
  18) { N: 17, TBeg: Date(1865, 04, 15), TEnd: Date(1869, 03, 04), NFirst: "Andrew",                          NLast: "Johnson",       Party: "Democratic",            Vice: "",                       },
  19) { N: 18, TBeg: Date(1869, 03, 04), TEnd: Date(1877, 03, 04), NFirst: "Ulysses",      NMid: "S.",        NLast: "Grant",         Party: "Republican",            Vice: "Schuyler Colfax",        },
  20) { N: 19, TBeg: Date(1877, 03, 04), TEnd: Date(1881, 03, 04), NFirst: "Rutherford",   NMid: "B.",        NLast: "Hayes",         Party: "Republican",            Vice: "William A. Wheeler",     },
  21) { N: 20, TBeg: Date(1881, 03, 04), TEnd: Date(1881, 09, 19), NFirst: "James",        NMid: "A.",        NLast: "Garfield",      Party: "Republican",            Vice: "Chester A. Arthur",      },
  22) { N: 21, TBeg: Date(1881, 09, 19), TEnd: Date(1885, 03, 04), NFirst: "Chester",      NMid: "A.",        NLast: "Arthur",        Party: "Republican",            Vice: "",                       },
  23) { N: 22, TBeg: Date(1885, 03, 04), TEnd: Date(1889, 03, 04), NFirst: "Grover",                          NLast: "Cleveland",     Party: "Democratic",            Vice: "Thomas A. Hendricks",    },
  24) { N: 23, TBeg: Date(1889, 03, 04), TEnd: Date(1893, 03, 04), NFirst: "Benjamin",                        NLast: "Harrison",      Party: "Republican",            Vice: "Levi P. Morton",         },
  25) { N: 24, TBeg: Date(1893, 03, 04), TEnd: Date(1897, 03, 04), NFirst: "Grover",                          NLast: "Cleveland",     Party: "Democratic",            Vice: "Adlai Stevenson",        },
  26) { N: 25, TBeg: Date(1897, 03, 04), TEnd: Date(1901, 09, 14), NFirst: "William",                         NLast: "McKinley",      Party: "Republican",            Vice: "Garret Hobart",          },
  27) { N: 26, TBeg: Date(1901, 09, 14), TEnd: Date(1909, 03, 04), NFirst: "Theodore",                        NLast: "Roosevelt",     Party: "Republican",            Vice: "",                       },
  28) { N: 27, TBeg: Date(1909, 03, 04), TEnd: Date(1913, 03, 04), NFirst: "William",      NMid: "Howard",    NLast: "Taft",          Party: "Republican",            Vice: "James S. Sherman",       },
  29) { N: 28, TBeg: Date(1913, 03, 04), TEnd: Date(1921, 03, 04), NFirst: "Woodrow",                         NLast: "Wilson",        Party: "Democratic",            Vice: "Thomas R. Marshall",     },
  30) { N: 29, TBeg: Date(1921, 03, 04), TEnd: Date(1923, 08, 02), NFirst: "Warren",       NMid: "G.",        NLast: "Harding",       Party: "Republican",            Vice: "Calvin Coolidge",        },
  31) { N: 30, TBeg: Date(1923, 08, 02), TEnd: Date(1929, 03, 04), NFirst: "Calvin",                          NLast: "Coolidge",      Party: "Republican",            Vice: "",                       },
  ...
>   16) [0] End

