.txt content =
22.08788214
98.58476277
90.30419021
66.95541915
71.69797604
88.34645813
24.89229343
79.37111899
75.8637856
68.93948998
41.47722297
16.78244013
98.42130636
29.44479061
36.44316384
80.20724065
75.6296787
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void openToolStripMenuItem_Click(object sender, EventArgs e)
{
if (ofd.ShowDialog(this) == DialogResult.OK)
{
FileStream fs = new FileStream(ofd.FileName, FileMode.Open);
BinaryReader br = new BinaryReader(fs);
double d = br.ReadDouble();
String str = br.ReadString();
br.Close();
fs.Close();
Console.WriteLine(d);
}
}
}
}
This post has been edited by greenwood: 13 September 2010 - 05:51 AM

New Topic/Question
Reply




MultiQuote





|