1 
2 #ifndef _CSV_READ_WRITE_
3 #define _CSV_READ_WRITE_
4 
5 class csv_read_write
6 {
7 public:
8     csv_read_write();
9     BOOL ExportLanguage(studiox_project *project);
10     BOOL ImportCsvFile(studiox_project *project, CString &pathname);
11 
12 private:
13     void ReadFile(CString pathname);
14     BOOL ReadLine(CString &line);
15     int FindDelimiterIndex(CString line, int start_index);
16     void SplitCsvLine(CString &line, CStringArray &line_array);
17     CString MakeCsvFormatValue(CString string);
18     void WriteString(CStdioFile *file, CString string);
19 
20 private:
21     char *mpLine;
22     char *mpBuffer;
23 
24 };
25 
26 
27 
28 #endif