Hello, I am trying to get deferent highlighted info from a word document. I have a program that takes a csv file and from that creates class objects that i use in my game. However as i have to type everything in it is pretty time intensive. This is a study program and the info comes from pdf files. Ideally what i would like to do is use different highlight colors to define the text that is pulled and used to create my classes. However i am not sure how to read in only highlighted info. There would be 4 different highlighted colors. I have a word document now that is converted from a pdf. I manually highlighted in 4 different colors on it, and successfully read it into unity using streamreader. However i am pulling all the data and its a lot of gibberish. I don’t know how to parse it correctly.
Instead of having it as a ‘rich text file’ (which has a lot of extra formatting data). Instead store it as plain text (.txt) file, or better an xml file. If you’re using xml you can than frame sections with <…> nodes and use System.Xml to parse through it very easily.
Thanks for the info, I have converted it to XML and indeed it does seem simpler. Just as i was trying to learn regex (boy that is complicated - though i can see it being usefull in the future).