Click here to Skip to main content
15,912,457 members

Comments by Member 13151067 (Top 6 by date)

Member 13151067 28-Apr-17 5:06am View    
The file will be sorted but i write the records with binary writer and they didn't sort after sorting it
here is my code to write the data
else
{

bw.BaseStream.Seek(length, SeekOrigin.Begin);


textBox2.Text = textBox2.Text.PadRight(5);
bw.Write(int.Parse(textBox2.Text).ToString("D5").Substring(0, 5));

textBox3.Text = textBox3.Text.PadRight(9);
bw.Write(textBox3.Text.Substring(0, 9));

textBox4.Text = textBox4.Text.PadRight(11);
bw.Write( textBox4.Text.Substring(0, 11));

textBox5.Text = textBox5.Text.PadRight(4);
bw.Write(int.Parse(textBox5.Text).ToString("D4").Substring(0, 4));

textBox6.Text = textBox6.Text.PadRight(1);
bw.Write(textBox6.Text.Substring(0, 1));
length += Class1.rec_size;
}
Member 13151067 28-Apr-17 4:58am View    
Sort the array of strings
Member 13151067 28-Apr-17 4:54am View    
Deleted
Sort the array of strings
Member 13151067 28-Apr-17 4:47am View    
How can i sort them?
Member 13151067 28-Apr-17 4:10am View    
when i try to use WriteAllText(outfile,string.concat(contents)); Records won't be sorted like writeAlllines