Click here to Skip to main content
15,894,312 members
Home / Discussions / C#
   

C#

 
QuestionOutlook Customise Forms? Pin
davebarkshire29-May-05 0:23
davebarkshire29-May-05 0:23 
GeneralStreamWriter not working Pin
Niklas Ulvinge28-May-05 23:42
Niklas Ulvinge28-May-05 23:42 
GeneralRe: StreamWriter not working Pin
Colin Angus Mackay28-May-05 23:57
Colin Angus Mackay28-May-05 23:57 
GeneralRe: StreamWriter not working Pin
Niklas Ulvinge29-May-05 0:01
Niklas Ulvinge29-May-05 0:01 
GeneralRe: StreamWriter not working Pin
Colin Angus Mackay29-May-05 0:05
Colin Angus Mackay29-May-05 0:05 
GeneralRe: StreamWriter not working Pin
Niklas Ulvinge29-May-05 0:12
Niklas Ulvinge29-May-05 0:12 
GeneralRe: StreamWriter not working Pin
Christian Graus29-May-05 0:18
protectorChristian Graus29-May-05 0:18 
GeneralRe: StreamWriter not working Pin
Niklas Ulvinge29-May-05 0:21
Niklas Ulvinge29-May-05 0:21 
Yes, that's why it didn't show up.
It write's xml. And that's the point.

The whole func:

public void SaveXML(string path)
{
StreamWriter SW = new StreamWriter(path, false);
SW.Write("<Neural Network>");
for (int l = 0; l < Layers.Length;l++ )
{
SW.Write(" <Layer>");
for (int n = 0; n < Layers[l].neurons.Length; n++)
{
SW.Write(" <Neuron number=\"" + GetNumber(this[l][n]) + "\n>");
SW.Write(" <Output value=\"" + this[l][n].output + "\n/>");
SW.Write(" <Weights>");
for (int w = 0; w < this[l][n].weights.Count; w++)
SW.Write(" <weight value= \"" + this[l][n].weights[w] + "\"/>");
SW.Write(" </Weights>");
SW.Write(" <Dendrites>");
for (int d = 0; d < this[l][n].dendrites.Count; d++)
{
SW.Write(" <dendrite number = \"" +GetNumber(this[l][n].dendrites[d]) + "\"/>");
}
SW.Write(" </Dendrites>");

//this[l][n].weights;
SW.Write(" </Neuron>");
}
SW.Write(" </Layer>");
}
SW.Flush();
SW.Close();
}

The PROgrammer Niklas Ulvinge aka IDK
GeneralRe: StreamWriter not working Pin
Christian Graus29-May-05 0:47
protectorChristian Graus29-May-05 0:47 
GeneralRe: StreamWriter not working Pin
Niklas Ulvinge29-May-05 0:48
Niklas Ulvinge29-May-05 0:48 
GeneralRe: StreamWriter not working Pin
Christian Graus29-May-05 0:50
protectorChristian Graus29-May-05 0:50 
GeneralRe: StreamWriter not working Pin
Niklas Ulvinge29-May-05 0:54
Niklas Ulvinge29-May-05 0:54 
GeneralRe: StreamWriter not working Pin
Christian Graus29-May-05 0:56
protectorChristian Graus29-May-05 0:56 
GeneralRe: StreamWriter not working Pin
Niklas Ulvinge29-May-05 1:03
Niklas Ulvinge29-May-05 1:03 
GeneralRe: StreamWriter not working Pin
Colin Angus Mackay29-May-05 0:19
Colin Angus Mackay29-May-05 0:19 
GeneralRe: StreamWriter not working Pin
Christian Graus29-May-05 0:51
protectorChristian Graus29-May-05 0:51 
GeneralRe: StreamWriter not working Pin
Colin Angus Mackay29-May-05 1:15
Colin Angus Mackay29-May-05 1:15 
Generala Question regarding serializing using FileMode.Append Pin
Green Fuze28-May-05 22:42
Green Fuze28-May-05 22:42 
GeneralRe: a Question regarding serializing using FileMode.Append Pin
Robert Rohde28-May-05 23:09
Robert Rohde28-May-05 23:09 
GeneralRe: a Question regarding serializing using FileMode.Append Pin
Green Fuze29-May-05 14:38
Green Fuze29-May-05 14:38 
GeneralRe: a Question regarding serializing using FileMode.Append Pin
Luis Alonso Ramos29-May-05 15:48
Luis Alonso Ramos29-May-05 15:48 
GeneralProblem storing data in xml file using serialization Pin
Member 200213128-May-05 20:29
Member 200213128-May-05 20:29 
Questionhow to add icons to context menu ?? Pin
ekynox28-May-05 17:24
ekynox28-May-05 17:24 
AnswerRe: how to add icons to context menu ?? Pin
ekynox1-Jun-05 14:56
ekynox1-Jun-05 14:56 
GeneralProblem with LIKE ' *xxx* ' Pin
quocpt28-May-05 16:18
quocpt28-May-05 16:18 

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.