//code sample String^ s1; String^ s2; String^ s3; int n; n = treeView1->TopNode->Nodes[0]->Nodes->Count; int m; m = treeView1->TopNode->Nodes[1]->Nodes->Count; int z; z = treeView1->TopNode->Nodes[2]->Nodes->Count; //upisujemo StreamWriter^ sw = gcnew StreamWriter("view.txt"); sw->WriteLine("class " + treeView1->TopNode->Text + " {"); for(int i = 0; i<n; i++) { sw->WriteLine(treeView1->TopNode->Nodes[0]->Text); sw->WriteLine(treeView1->Nodes[1]->Nodes[i]->Text); } sw->Flush(); sw->Close(); delete sw;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)