I read it when I was little & it was illustrated by Quentin Blake although I don't think its a Dahl.
It was about a boy who was epileptic & discovered he enjoyed swimming. They class once swam in a river.
I know I know its a crap recollection, sorry. Any ideas welcome :)