Void.ctor(Char,Char,Char,Char)
How do you specify the four (4) Char in APL ? I have tried the obvious and it does not work.
Thanks in advance.
Void.ctor(Char,Char,Char,Char)
Code: Select all
public class FourCharsCls
{
public bool isInitialized;
public char mya='x';
public char myb='x';
public char myc='x';
public char myd='x';
public FourCharsCls(char a, char b, char c, char d)
{
isInitialized = true;
mya = a;
myb = b;
}
public static void Main()
{
}
}
⎕USING←',C:\Program Files (x86)\Dyalog\Dyalog APL 14.1 Unicode\Samples\aplclasses\fourchars.dll'
myf←⎕NEW FourCharsCls 'abcd'
Code: Select all
Void .ctor(System.IO.TextReader, Boolean)
Void .ctor(System.IO.TextReader, Boolean, Int32)
Void .ctor(System.IO.TextReader, Boolean, Char)
Void .ctor(System.IO.TextReader, Boolean, Char, Int32)
Void .ctor(System.IO.TextReader, Boolean, Char, Char, Char, Char, LumenWorks.Framework.IO.Csv.ValueTrimmingOptions, System.String)
Void .ctor(System.IO.TextReader, Boolean, Char, Char, Char, Char, LumenWorks.Framework.IO.Csv.ValueTrimmingOptions, Int32, System.String)
Code: Select all
FastCSV fileName;bufferSize;cols;comment;delimiter;escape;hasHeaders;nullValue;quote;streamReader;trimmingOptions;⎕USING
⍝ Based on: http://www.codeproject.com/Articles/9258/A-Fast-CSV-Reader
⍝ and https://github.com/phatcher/CsvReader
⎕USING←'System.IO,mscorlib.dll' 'LumenWorks.Framework.IO.Csv,LumenWorks.Framework.IO.dll' 'System.Data,System.Data.dll' 'System,mscorlib.dll'
hasHeaders←1
delimiter←','
quote←'"'
escape←'"'
comment←'#'
trimmingOptions←1 ⍝ 0=None, 1=Unquoted Only, 2=Quoted Only, 3=All
bufferSize←4096
nullValue←0
streamReader←⎕NEW StreamReader(⊂,fileName)
csv←⎕NEW CsvReader(streamReader,hasHeaders,delimiter,quote,escape,comment,trimmingOptions,bufferSize,nullValue)
⍝ csv←⎕NEW CsvReader(streamReader,hasHeaders,delimiter) ⍝ This is working
FastCSV 'd:\Book1.csv'