troubleshooting Question

Looking For .NET function to insure backslash in path string

Avatar of zonkerman
zonkermanFlag for United States of America asked on
.NET ProgrammingC#
5 Comments1 Solution7325 ViewsLast Modified:
Is there a built in function or method in .NET that can insures a file path contains a trailing backslash or that insures no trailing backslash exists?  When I use Delphi I am able to use a function called IncludeTrailingPathDelimiter which insures the last character in a path string contains a backslash or whatever the path delimiter is.  Is there something like this I can use in the .NET Framework?  An example in C# is what I am looking for.  I could write such a routine but I just want to check first if it already exists in the .NET 2.0 Framework or not.
ASKER CERTIFIED SOLUTION
Mike Tomlinson
High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros