I don't understand your problem, exactly.
You have some sort of data file you want to read a table from. First of all, again, what format is this data file in? Is it text? It sounds short. Just post an example of what the file would look like.
You say something about an array and about printing ":" and "|". Those sound like two different problems. Do you mean you want to store these characters in the array? Do you want to store the values you read in the array and then print the corresponding characters out? In that case, do you actually need the intermediate array, or can you just read the file and print the output directly?
Be a bit clearer about what you're trying to accomplish. Post a sample data file and describe the result you'd expect from it. It also might help to know sorta what you're trying to do.