Spartan boys received some basic education in reading and writing, enough to manage basic administrative tasks and potentially interpret military orders and messages. However, the focus was almost entirely on physical and military training. The ability to read and write wasn't deemed as crucial to their societal ideals as warrior skills.
Therefore, while literacy existed in Sparta, it was far less prevalent and less valued than in other parts of ancient Greece.