Can I read from a text file and put the data into a dispatch variable?

Hi,

Can anyone tell me if it is possible to create a text file (or any kind of file) with a dispatch and then read data from that file and use it in a dispatch variable?

I am looking for a way to take out a serial number and use that to rename an existing file.

Thanks,

SolidworksSolidworks Pdm enterprise Pdm