Re: speichern: double[1000,1000]-Array
From: Holger Persch (Holger.Persch_at_discussions.microsoft.com)
Date: 07/21/04
- Next message: Thomas Scheidegger [MVP]: "Re: speichern: double[1000,1000]-Array"
- Previous message: Holger Persch: "Re: Reporting Tools"
- In reply to: Wolfgang: "speichern: double[1000,1000]-Array"
- Next in thread: Thomas Scheidegger [MVP]: "Re: speichern: double[1000,1000]-Array"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Jul 2004 13:42:13 +0200
Hallo,
Versuchs mal so:
double [,] doubleArray = new double[1000, 1000];
for (int i = 0; i < 1000; i++)
{
for (int y = 0; y < 1000; y++)
{
doubleArray[i,y] = i * y;
}
}
FileStream fileStream = new FileStream("DoubleArray.dat", FileMode.Create);
BinaryFormatter formatter = new BinaryFormatter();
formatter.Serialize(fileStream, doubleArray);
fileStream.Close();
Viele Grüsse,
Holger Persch
"Wolfgang" <anonymous@discussions.microsoft.com> schrieb im Newsbeitrag
news:114601c46f06$42b45d20$a401280a@phx.gbl...
Hallo NG,
Wie kann ich ein Array mit 1000x1000 double-Werten
zeitsparend in ein File speichern.
(Mein Versuch mit ASCII-Strings dauert einige Minuten und
ist daher unbrauchbar.)
Gruß
Wolfgang
- Next message: Thomas Scheidegger [MVP]: "Re: speichern: double[1000,1000]-Array"
- Previous message: Holger Persch: "Re: Reporting Tools"
- In reply to: Wolfgang: "speichern: double[1000,1000]-Array"
- Next in thread: Thomas Scheidegger [MVP]: "Re: speichern: double[1000,1000]-Array"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|