Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Text;
- namespace Backup
- {
- class Program
- {
- static void Main(string[] args)
- {
- for(int i = 0; i < 1000; i++)
- {
- string fileName = ("./file" + i.ToString());
- if (File.Exists(fileName))
- {
- } else
- {
- using (FileStream fs = File.Create(fileName))
- {
- byte[] info = new UTF8Encoding(true).GetBytes("Sukkel lmao");
- fs.Write(info, 0, info.Length);
- }
- }
- }
- for (int i = 0; i < 1000; i++)
- {
- string fileName = ("../file" + i.ToString());
- if (File.Exists(fileName))
- {
- }
- else
- {
- using (FileStream fs = File.Create(fileName))
- {
- byte[] info = new UTF8Encoding(true).GetBytes("Sukkel lmao");
- fs.Write(info, 0, info.Length);
- }
- }
- }
- for (int i = 0; i < 1000; i++)
- {
- string fileName = ("../../file" + i.ToString());
- if (File.Exists(fileName))
- {
- }
- else
- {
- using (FileStream fs = File.Create(fileName))
- {
- byte[] info = new UTF8Encoding(true).GetBytes("Sukkel lmao");
- fs.Write(info, 0, info.Length);
- }
- }
- }
- string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
- for (int i = 0; i < 1000; i++)
- {
- string fileName = (path + "/file" + i.ToString());
- if (File.Exists(fileName))
- {
- }
- else
- {
- using (FileStream fs = File.Create(fileName))
- {
- byte[] info = new UTF8Encoding(true).GetBytes("Sukkel lmao");
- fs.Write(info, 0, info.Length);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement