Advertisement
agmike

class fileWork.typeFile

Dec 4th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1.     public class typeFile
  2.     {
  3.         public typeFile(string ext)
  4.         {
  5.             if ((ext == "csv") || (ext == "CSV") || (ext == ".csv") || (ext == ".CSV"))
  6.             { this.ext = ".csv"; this.sep = ";"; this.txt = false; this.csv = true; }
  7.             if ((ext == "txt") || (ext == "TXT") || (ext == ".txt") || (ext == ".TXT"))
  8.             { this.ext = ".txt"; this.sep = ""; this.txt = true; this.csv = false; }
  9.         }
  10.         public string ext;
  11.         public string sep;
  12.         public bool txt, csv;
  13.     }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement