Creation of file at run-time with user wish file name??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pvaju896
    New Member
    • Aug 2009
    • 1

    Creation of file at run-time with user wish file name??

    my question is..
    when user entering a date and i need my program to create a file in that date or name ??

    how i can implement this ???

    example...

    FileStream fs = new FileStream("fil ename.txt",File Mode.OpenOrCrea te);

    in this..

    in " filename " i need to pass one string as " user input " for file name..

    wat should i do??? HELP ME PLAESE...!!
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    A DateTime object has a ".ToString( )" method with many overrides.
    You can get that DateTime in just about any style you want.

    The MSDN page for DateTime

    Comment

    Working...