Mark me as a disbeliever that a ripped file can sound better than an original... different maybe, same definitely...better... No.
Yup- that was always my opinion too. I (and probably you too) come from an era when to copy music meant to record it onto tape, or laterly onto a CD, DAT or some other digital format. To do so
always resulted in degradation because (in the case of digital copies) the file format has to be converted, possibly several times and including D-A and A-D during some processes. And with analogue tape, even if you use (as I do) a top-end 3-head dolby S deck, at the very least you lose some fidelity as the signal travels through extra sets of interconnects and the internals of the tape deck.
Ripping is different though. I'll look for the article I read which convinced me and post it when I find it, but to summarise non-technically; when you rip a CD you are simply lifting off the 1's and 0's and comitting them unchanged to a hard disc. Upon replay you are lifting the bit-perfect exact same 1's and 0's and sending them to a DAC and then onward to your amp/speakers/headphones. Now to achieve this perfectly one should use a blue-ray drive not a CD/DVD drive (something to do with built-in non-defeatable error correction that Bluray drives do not have) and a program like Exact Audio Copy (EAC) to ensure that the computer isn't trying to do anything smart with the rip.
There is the (I would say well-realised) potential for the resultant file to sound better than the CD, because what you hear off a CD player is actually
more processed than a CD ripped file or a stream. CD players subject the stored digital file on the disc to a lot of error correction and other processing as well as it's built-in amplifier and output stage, none of which a rip or a stream has to contend with- assuming the rip/stream is uncompressed - hi-res or flac.
Now I know what you may be thinking; I read all this and then convinced myself that I was hearing better quality from my rip and streaming than from my CD collection. In actual fact it was the other way around. After buying a new headphone amp and stupidly expensive - around the £1.5k mark - headphones , I began to wonder why my CD player sounded flat and lifeless compared to the same music via Qobuz or a ripped version. This was via the same DAC, headphone amp and headphones. I then googled ' why do rips sound better than the original CD' or words to that effect, and found a wealth of results explaining what I have attempted to convey above.
All I can say to you, is to try it yourself, subject to the hardware/software provisos above.