I have a USB type A to type B cable, I took it from a printer. Now, I want to utilize this USB cable to make a 5V breadboard power supply. I will cut the cable and connect power lines to breadboard's power rails. But, I can't be sure if it is guaranteed to have cables for power transmission or not. I mean, I don't want to ruin the cable if it cannot be used to transmit power.
So, I am sure (well, almost) that there are data lines in the cable, because it was used to transfer data between computer and printer. However, printer had its own power plug. Thus, I am not sure whether this cable has a power line or just data lines.
If the USB connector on the cable is stamped/embossed with the USB logotype, then it has all four wires connected.