Click here to Skip to main content
16,005,121 members
Home / Discussions / C#
   

C#

 
GeneralRe: LAPACK Pin
JADeSantiago20-Nov-09 10:49
JADeSantiago20-Nov-09 10:49 
General3D Graphs in C# Pin
amitmohanty17-Aug-05 19:01
amitmohanty17-Aug-05 19:01 
GeneralTrig: Calculating points on a line Pin
J4amieC17-Aug-05 11:44
J4amieC17-Aug-05 11:44 
GeneralRe: Trig: Calculating points on a line Pin
Christian Graus17-Aug-05 12:11
protectorChristian Graus17-Aug-05 12:11 
GeneralRe: Trig: Calculating points on a line Pin
J4amieC17-Aug-05 22:26
J4amieC17-Aug-05 22:26 
GeneralRe: Trig: Calculating points on a line Pin
Christian Graus18-Aug-05 14:52
protectorChristian Graus18-Aug-05 14:52 
GeneralRe: Trig: Calculating points on a line Pin
J4amieC21-Aug-05 9:53
J4amieC21-Aug-05 9:53 
GeneralSave inside a file ArrayList code Pin
Sasuko17-Aug-05 11:18
Sasuko17-Aug-05 11:18 
I've create an object:

class myClass{
int value;
string name;
}

now i've created an arraylist of it
ArrayList[] myArray = new ArrayList[4];

now i create multiarray of it:
for(int i=0; i<4; i++){
myArray[i] = new ArrayList[7];
}

now i assign value in this way
...
myClass myClassRef = new myClass();
myClassRef.name = "James";
myArray[2][4] = myClassRef;
...

ok now i want to save all myArray inside a text file and then read back again a new myNewArray.
How? Can you show me a bit of code?

I choose arraylist becouse it is not definited the dimension.
I don't want to use XML becouse C# is a full self sufficient language!
Tnx to all.
GeneralRe: Save inside a file ArrayList code Pin
Guffa17-Aug-05 12:07
Guffa17-Aug-05 12:07 
GeneralRe: Save inside a file ArrayList code Pin
Sasuko17-Aug-05 12:16
Sasuko17-Aug-05 12:16 
GeneralRe: Save inside a file ArrayList code Pin
Guffa17-Aug-05 21:07
Guffa17-Aug-05 21:07 
GeneralRe: Save inside a file ArrayList code Pin
S. Senthil Kumar17-Aug-05 21:00
S. Senthil Kumar17-Aug-05 21:00 
GeneralRe: Save inside a file ArrayList code Pin
Sasuko17-Aug-05 21:49
Sasuko17-Aug-05 21:49 
GeneralRe: Save inside a file ArrayList code Pin
Azerax20-Aug-05 2:22
Azerax20-Aug-05 2:22 
GeneralMask the TextBox Pin
zaboboa17-Aug-05 10:11
zaboboa17-Aug-05 10:11 
GeneralRe: Mask the TextBox Pin
BammBamm17-Aug-05 10:59
BammBamm17-Aug-05 10:59 
GeneralRe: Mask the TextBox Pin
Mohamad Al Husseiny17-Aug-05 11:44
Mohamad Al Husseiny17-Aug-05 11:44 
GeneralRe: Mask the TextBox Pin
zaboboa18-Aug-05 2:22
zaboboa18-Aug-05 2:22 
GeneralRe: Mask the TextBox Pin
Mohamad Al Husseiny18-Aug-05 3:20
Mohamad Al Husseiny18-Aug-05 3:20 
GeneralRe: Mask the TextBox Pin
zaboboa18-Aug-05 3:36
zaboboa18-Aug-05 3:36 
GeneralRe: Mask the TextBox Pin
Mohamad Al Husseiny18-Aug-05 3:44
Mohamad Al Husseiny18-Aug-05 3:44 
GeneralNNTP sever Pin
Mridang Agarwalla17-Aug-05 9:12
Mridang Agarwalla17-Aug-05 9:12 
GeneralRe: NNTP sever Pin
leppie17-Aug-05 23:40
leppie17-Aug-05 23:40 
Generalremoving XML entries Pin
Mridang Agarwalla17-Aug-05 8:44
Mridang Agarwalla17-Aug-05 8:44 
GeneralRe: removing XML entries Pin
BammBamm17-Aug-05 8:53
BammBamm17-Aug-05 8:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.