Those were the only two times of outdoor sleep in my life to date. The itinerary was Milan - Zurich - Amsterdam - Paris - Biarritz - Modane - back to Italy, sleeping in either hotels or the closest camping site to the train station.
IIRC it was a ticket for 20 days of unlimited travel, which we had to cut short as a friend did get sunburnt so badly to require a hospital stay. Ah, the joys of youth.
if you sleep outside train stations in france nowadays you gon have a fun time