I have written code to write data into .DAT file. When I was testing this application I found that on one of my test machine file generated like below, I am not getting how to avoid this.
效摡牥〥㠰〬㠰ㄲ〰ㄳ㌷〬㠰ㄲ〰 ㄳ㌷㠬㈶ㄬㄯ⼴〲㈱ㄬㄯ⼴〲㈱䈬 剋ⱍ〰㈸〱㌰㜱ⰳ⼱ 㔱㈯′㨲〳
I am using following code to get data from class object and write into the file
FileStream fs = new FileStream(pPat h + @"\" + pConfirmationNu mber + "-" + pHHID + "-" + OrderID + @".RDY", FileMode.Create , FileAccess.Writ e, FileShare.None) ;
fs.Write(Encodi ng.ASCII.GetByt es(sOutput), 0, sOutput.Length) ;
效摡牥〥㠰〬㠰ㄲ〰ㄳ㌷〬㠰ㄲ〰 ㄳ㌷㠬㈶ㄬㄯ⼴〲㈱ㄬㄯ⼴〲㈱䈬 剋ⱍ〰㈸〱㌰㜱ⰳ⼱ 㔱㈯′㨲〳
I am using following code to get data from class object and write into the file
FileStream fs = new FileStream(pPat h + @"\" + pConfirmationNu mber + "-" + pHHID + "-" + OrderID + @".RDY", FileMode.Create , FileAccess.Writ e, FileShare.None) ;
fs.Write(Encodi ng.ASCII.GetByt es(sOutput), 0, sOutput.Length) ;
Comment