Example #1
0
 public Parser()
 {
     inputFile = null;
     outputFile = null;
     splitinlines = new List<string>();
     //fh = new FileHandler();
     fh = FileHandler.Instance;
     classCol = 1;
     qColBegin = 2;
     delimString = "\t";
 }
Example #2
0
        public Parser()
        {
            /* CurrentCulture is changed to make sure decimals are printed as x.xx instead of x,xx
             * (Messes up csv-file import into excel, openoffice etc.)
             * Yes, it's a hack but it works for now.
             * Thread.CurrentThread.CurrentCulture = new CultureInfo("sv-SE");
             *
             * 100313 - Ignore above comment. Using tabs again which is just easier.
             * CSV sucks monkey nuts (And you can quote me on that).
             */

            inputFile = null;
            outputFile = null;
            splitinlines = new List<string>();
            fh = new FileHandler();
            classCol = 1;
            qColBegin = 2;
            delimString = "\t";
        }
Example #3
0
        public Parser(string iFile, string oFile)
        {
            // CurrentCulture is changed to make sure decimals are printed as x.xx instead of x,xx
            // (Messes up csv-file import into excel, openoffice etc.)
            // Yes, it's a hack but it works for now.
            //Thread.CurrentThread.CurrentCulture = new CultureInfo("sv-SE");

            inputFile = iFile;
            outputFile = oFile;
            splitinlines = new List<string>();
            fh = new FileHandler(inputFile, outputFile);
            numCols = 0;
            idCol = 0;
            classCol = 1;
            qColBegin = 2;
            //cmpLen = 3; // compare length of 3 only valid for questions with 4 characters.
            delimString = "\t";
            rowCount = 0;
            cmIndex = 0;
            //delimString = ",";
            //delimString = ":";
        }