How to replace a fixed position value with another another value in C#?

I am creating a C# application using .Net Framework 4.0.

I have a variable titled "file_tif" that has a value, for example, of  (X represents a number)    "2016XXXXXXXXXX_Front.TIF"
How would you replace the variable's value with                                                                            "2016XXXXXXXXXX.TIF"
zimmer9Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Dustin SaundersConnect With a Mentor Director of OperationsCommented:
Just replace _Front with nothing.

string input = "2016XXXXXXXXXX_Front.TIF";
            input = input.Replace("_Front", string.Empty);

Open in new window

0
 
ste5anSenior DeveloperCommented:
string file_tif = "2016XXXXXXXXXX_Front.TIF";
file_tif = "2016XXXXXXXXXX.TIF";

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.