Quick FYI to a recovering C programmer, everything in C# is an object. To some extent, even primitives can be treated as objects. Arrays are objects with friendly properties, unlike C array pointer to something of random size thingies.
So, you can do this:
void colour (System.Drawing.Color a, string [] search, bool bold) {
int z = 0;
try {
for (int x = 0; x < search.Length; x++) {
// ...
Or, if you like:
void colour (System.Drawing.Color a, string [] search, bool bold) {
int z = 0;
try {
foreach(string keyword in search) {
// ...
For what you're trying to do, I'll look into List<string>. This is a lot like a C++ vector. Then, for bonus points, look into XML Serialization of said collection object. Serializing and deserializing could be a quick route to the those format files you're looking to write.

New Topic/Question
Reply




MultiQuote







|