I have this code:
FileStream fs = new FileStream(name_loc_ficheiro,FileMode.Append,FileAccess.Write);
using (StreamWriter sw = new StreamWriter(fs))
{
sw.Write(byteArray,(int)total_bytes_received,(int)byteArray.Length);
}
What is the right way to do this?