How to Create Files by Using the FileInfo Class?



How to Create Files by Using the FileInfo Class?..

Answer / raihansazal

FileInfo fi = new FileInfo("Your file name with directory");
fi.Create();

That's all.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Sharp Code Interview Questions

How to find No of classes,Packages,No of Methods per Classes and Depth of Inheritance for selecting source code in windows form application using c# .net? (Source code is input Program. It may be Java or .net) Please help me..) Thanks..)

0 Answers  


c# coding for a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors not using the Big-integer and Exponential Function's.

1 Answers   TCS,


Code for Reading and writing from a file?

0 Answers   IBM, Xoriant,


c# code to Count number of 1's in a given range of integer (0 to n)

0 Answers  


program to check if a number is "perfect number".

1 Answers   Mind Tree, SoftSol,






Write a program to input an integer and - display the reverse - display the sum of each digit - should include logic that considers the input number as any number of digits long

2 Answers   Mind Tree,


how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)

1 Answers  


working with arrays

1 Answers  


How to Link Different Data Sources Together?

0 Answers  


How to export 2 datatables of a single dataset to 2 different worksheets of a single MSExcel file ?

0 Answers   Eastcom Systems,


how do i copy textbox contents of 1 form to another form

4 Answers   Wipro,


Automatically Hyperlink URLs and E-Mail Addresses in ASP.NET Pages with C#

1 Answers  


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)