Hello, I was wondering it it's possible to change my textfile to an arrray.

For example this is my text file: 4x3 + 5x^2 + 3x + 2

I want to get the number of coefficients and the coefficients. That would look something like this

Is this possible? I have a hard time figuring out a code for thisCode:`double [number of coef]= {2,3,5,4}`