Read. Txt and assign value to a variable

Hello, I am trying to read a. Txt file on the memory card and pass this value to read IPAdrees and variable port, so I can change the values ??of IP and Port without the need to use the Arduino IDE and facilitating its use at least for my application if someone can give me a hint.

i did a quick search and found this Can SD Card be used to store ip address/MAC configs? - Networking, Protocols, and Devices - Arduino Forum

I use the SD card to store my network settings. jasit gave you the link to the topic. Here is the link to my reply and the code I use.

thanks guys with tips that gave me managed to fix programming.