File Programming issue


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
digraph _OP_control_flow {
	graph [center=true,
		epsilon=".000001",
		pack=true,
		rankdir=LR,
		ratio=compress,
		sep=".5",
		size="5.83,8.27",
		splines=true
	];
	node [fillcolor="#fff9f9",
		shape=doublecircle,
		style=filled
	];
	B02	 [fillcolor="#fff3f3",
		shape=circle];
	B01 -> B02;
	B03	 [shape=circle];
	B02 -> B03;
	B04	 [shape=circle];
	B03 -> B04;
	B05	 [fillcolor="#ffecec",
		shape=circle];
	B04 -> B05;
	B06	 [shape=circle];
	B05 -> B06;
	B07	 [fillcolor="#ffe6e6",
		shape=circle];
	B06 -> B07;
	B08	 [shape=circle];
	B07 -> B08;
	B09	 [fillcolor="#ffecec",
		shape=circle];
	B08 -> B09;
	B10	 [shape=circle];
	B09 -> B10;
	B11	 [fillcolor="#ffa0a0",
		shape=circle];
	B10 -> B11;
	B12	 [fillcolor="#ffe0e0",
		shape=circle];
	B11 -> B12	 [label="{5}"];
	B14	 [fillcolor="#ffa0a0",
		shape=circle];
	B11 -> B14	 [label="{4}"];
	B13	 [fillcolor="#ffc0c0",
		shape=circle];
	B12 -> B13	 [label="{5}"];
	B13 -> B14	 [label="{5}"];
	B15	 [fillcolor="#ffe6e6",
		shape=circle];
	B14 -> B15;
	B16	 [fillcolor="#ffcccc",
		shape=circle];
	B15 -> B16;
	B17	 [fillcolor="#ff4d4d",
		shape=circle];
	B16 -> B17	 [label="{4}"];
	B21	 [fillcolor="#ffcccc",
		shape=circle];
	B16 -> B21	 [label="{3}"];
	B18	 [fillcolor="#ff0000",
		shape=circle];
	B17 -> B18	 [label="{10}"];
	B19	 [fillcolor="#ffc0c0",
		shape=circle];
	B17 -> B19	 [label="{10}"];
	B17 -> B21	 [label="{4}"];
	B18 -> B19	 [label="{4}"];
	B20	 [fillcolor="#ffb3b3",
		shape=circle];
	B18 -> B20	 [label="{6}"];
	B20 -> B19	 [label="{6}"];
	B22	 [shape=circle];
	B21 -> B22;
	B23	 [shape=circle];
	B22 -> B23;
	B24	 [fillcolor="#ffecec",
		shape=circle];
	B23 -> B24;
	B25	 [fillcolor="#fff3f3",
		shape=circle];
	B24 -> B25;
	B26	 [fillcolor="#ff8080",
		shape=circle];
	B25 -> B26;
	B27	 [fillcolor="#ffc0c0",
		shape=circle];
	B26 -> B27	 [label="{5}"];
	B29	 [fillcolor="#ffc0c0",
		shape=circle];
	B26 -> B29	 [label="{4}"];
	B28	 [fillcolor="#ffe0e0",
		shape=circle];
	B27 -> B28	 [label="{5}"];
	B28 -> B29	 [label="{5}"];
	B30	 [shape=circle];
	B29 -> B30;
	B31	 [fillcolor="#fff3f3",
		shape=circle];
	B30 -> B31;
	B32	 [shape=circle];
	B31 -> B32;
	B32 -> B33;
}



This is .txt file, i want a c program to take the two string one before and one after this -> string from the whole file,concatenate them and store it in an array.

Can any one help with this..
Topic archived. No new replies allowed.