Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class typeFile
- {
- public typeFile(string ext)
- {
- if ((ext == "csv") || (ext == "CSV") || (ext == ".csv") || (ext == ".CSV"))
- { this.ext = ".csv"; this.sep = ";"; this.txt = false; this.csv = true; }
- if ((ext == "txt") || (ext == "TXT") || (ext == ".txt") || (ext == ".TXT"))
- { this.ext = ".txt"; this.sep = ""; this.txt = true; this.csv = false; }
- }
- public string ext;
- public string sep;
- public bool txt, csv;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement