Simple script for iPhone that reads file in iCloud Drive and prompt so select one of the lines

Hi all! 

I'd like to have a Shortcut on my iPhone that does the following: First, it reads every line in a textfile stored in iCloud Drive, then prompt me which line of all these lines in that file i want to select/choose. After the line is chosen, it will write only that single chosen line to a new textfile (saved in a specific folder in iCloud Drive), where the title of that textfiles is the current UNIXTIME. So the filename will be something like "1676206299.txt" .

Can anybody help me code this? I'm completely new to the shortcuts thing, but see great potential in the possibilities! 

Thanks so much for your time!

Simple script for iPhone that reads file in iCloud Drive and prompt so select one of the lines
 
 
Q