I have created a new folder on my website called CanadaPost. I have check with my shared hosting service and they have told me that I have read and write access on the folder - CanadaPost
I have the following code....right now my program gets hung up (no error message) on the line TextWriter tw = new StreamWriter("~/CanadaPost/" + CartId + ."txt", false);
What would be the correct way of writing a string out to a text file?
// Now trying to save the xml to file
try
{
StreamReader mySaveReader = CanadaPostShipping(my_cart_total, my_item_name, my_quantity, my_weight, my_height, my_length, my_width, my_add_city, my_add_prov, my_add_country, my_add_postal);
string mySaveData = mySaveReader.ReadToEnd();
mySaveReader.Close();
TextWriter tw = new St ...
Go to the complete details ...