と書いてあった

it said

→ と
phrase Rare #25,066
it said Used to report what was written. 書いてあった is the past form of 書いてある; the examples also use the present form 書いてある.
JA: 案内には、駅は右にあると書いてあった。
EN: The sign said the station was on the right.

上海で叔母と同居して勉強を続けて欲しいと書いてあった

It said that they wanted me to live with my aunt in Shanghai and continue my studies.

— ラスト、コーション (2007)

その公園の多くの掲示板に芝生内立ち入り禁止と書いてあった。

Many of the signs in the park said, “Keep off the grass.”