Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# Project File Create

 string appDataPath = AppDomain.CurrentDomain.BaseDirectory + @"Files";//Projenin Exe sinin bulunduğu kısımda Files klasöru Yolu
        if (!Directory.Exists(appDataPath)) //Projenin Exe sinin bulunduğu kısımda Files klasöru Varmı Kontrol.
        {
            Directory.CreateDirectory(appDataPath);//Projenin Exe sinin bulunduğu kısımda klasör oluşturma.
        }

        FileStream f = new FileStream(@"FilesFileStreamA.txt", FileMode.OpenOrCreate);//creating file stream          
        f.WriteByte(65);//writing byte into stream  
        f.Close();//closing stream 
 
PREVIOUS NEXT
Tagged: #Project #File #Create
ADD COMMENT
Topic
Name
4+2 =