because string that u get from ToShortDateString contains Foward slash "/"
that is not allowed in a file name..

Romeve the space put some other character ...

hopfully it will word

On Mon, May 11, 2009 at 5:42 AM, glogic20 <[email protected]> wrote:

>
>
> Hi all
> I was just wondering how i would use a string to create a filename. Im
> trying to use my string to create a text document of that name in c#. i
> understand that this is a c/c++ forum but i just thought id give it a shot.
> I have checked it out online already but the examples i keep finding are not
> what im looking for. im going to keep looking but if anyone happens to know
> how to do it here id love to hear from you.
>
> DateTime test = DateTime.Now;
> string test2 = test.ToShortDateString();
> test2 += ".bvh";
> FileInfo fi = new FileInfo(test2);
> FileStream fstr = fi.Create();
>
> this is what i was trying but no luck so far
>
> Cheers
> G
>
> 
>


[Non-text portions of this message have been removed]

Reply via email to