CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #2
    Join Date
    Dec 2000
    Location
    Slovakia
    Posts
    1,043
    Code:
    int nIndex = strFullFileName.LastIndexOf('\\');
    string sFilePath = strFullFileName.Substring(0, nIndex);
    string sFileName = strFullFileName.Substring(nIndex+1);
    Last edited by MartinL; December 5th, 2002 at 05:23 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured