String concatination

Discussion in 'ASP .Net Web Controls' started by Rajika Somasiri, Feb 9, 2004.

  1. In the following code "fname" is a variable for a file name and "name" is a
    string variable. But when I use fname it does not contain the ".txt" part.

    string fname = "Info\\" + DateTime.Now.ToString("ddMMyyHHmm")+name+".txt";

    String concatination is not done properly. What do I do ?
    Rajika Somasiri, Feb 9, 2004
    #1
    1. Advertising

  2. Rajika Somasiri

    Tom Kiefer Guest

    You may need to elaborate a bit upon "not done properly".

    - Tom Kiefer
    thogek @ earthlink . net


    "Rajika Somasiri" <> wrote in message
    news:...
    > In the following code "fname" is a variable for a file name and "name" is

    a
    > string variable. But when I use fname it does not contain the ".txt" part.
    >
    > string fname = "Info\\" + DateTime.Now.ToString("ddMMyyHHmm")+name+".txt";
    >
    > String concatination is not done properly. What do I do ?
    >
    Tom Kiefer, Feb 9, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jakob Simon-Gaarde

    Preprocessor concatination of defines

    Jakob Simon-Gaarde, Jul 1, 2004, in forum: C++
    Replies:
    4
    Views:
    442
    Jack Klein
    Jul 2, 2004
  2. JChG
    Replies:
    1
    Views:
    245
    Steven D'Aprano
    Apr 19, 2010
  3. Noah Roberts
    Replies:
    5
    Views:
    754
    James Kanze
    Jan 12, 2011
  4. Rajika Somasiri

    String concatination

    Rajika Somasiri, Feb 9, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    111
    Anusha Nanayakkara
    Feb 23, 2004
  5. Crystal
    Replies:
    3
    Views:
    121
    Crystal
    Jul 9, 2003
Loading...

Share This Page