Digipot and sd card connection

Hello, I want to connect the digipot and the sd card, I couldn't find an example for this, can you please share your sample codes with me, I want to print the value read in the digipot to the sd card

That doesn’t really make any sense.

You typically write to a digipot, to set the value.
See the examples for SD card for reading and writing to those,

Can you send me sample project links please

You really should read the responses before asking more questions.

What are you really trying to do ?
Searching here, or on google with your keywords will point you in the right direction.

AFAIK you can’t ‘read’ a digipot, but there’s a high likelihood, you previously wrote a value to it - to set the current value.

You already ‘know’ the value, so use that.
(you probably can read the pot registers, but ‘why’, you already know the value).