Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- namespace esFile
- {
- class Program
- {
- static void Main(string[] args)
- {
- /* File.Copy(@"c:\temp\myfile.bmp",@"c:\temp\myfile2.bmp",true);
- string path=@"c:\temp\myfile3.bmp";
- File.Delete(path);
- var content=File.ReadAllText(path);
- var fileInfo=new FileInfo(path);
- fileInfo.CopyTo("...");
- fileInfo.Delete();
- if(fileInfo.Exists)
- {
- }
- */
- Directory.CreateDirectory(@"c:\temp\folder1");
- var files=Directory.GetFiles(@"c:\temp\folder1" , "*.*", SearchOption.AllDirectories);
- foreach(var file in files)
- Console.WriteLine(file);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement