Пример #1
0
        private string escapeValue(string value)
        {
            // modify if special characters are present

            if (value.IndexOfAny(AsciiHelper.GetAllSeperator().ToArray()) != -1)
            {
                value = "\"" + value.Replace("\"", "\"\"") + "\"";
            }
            return(value);
        }
Пример #2
0
        protected override void Init(string file, long dataStructureId)
        {
            // store pointer to dataStructure
            //dataStructure = GetDataStructure(dataStructureId);

            // create the file
            CreateFile(file);

            // save the path
            this.filepath = file;

            // reset instance variables
            this.data      = new StringBuilder();
            this.separator = Char.ToString(AsciiHelper.GetSeperator(Delimeter));
        }