Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void AddFile(string File)
- {
- Globals.File file = new Globals.File();
- string texto = File.Split(' ')[0];
- int valorPos = texto.IndexOf(@"""") + 1;
- string valorEntreAspas = texto.Substring(valorPos, texto.IndexOf(@"""", valorPos) - valorPos);
- file.Name = valorEntreAspas;
- file.Hash = File.Split(' ')[1];
- file.Size = Convert.ToInt64(File.Split(' ')[2]);
- Globals.Files.Add(file);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement