Hey guys,

I need a favor. My text file looks something like -


type1 10 5 6 0 3
type2 9 4 0 0 5
type1 10 4 0 0 7
type2 9 0 5 8 6
type3 7 3 7 0 9
type3 7 0 9 9 9

I need to input type1 as "type1" and not as individual characters. When I am directly trying to take it into a matrix, it gets separated into individual alphabets. Please help!


Cheers!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.