Create read_switch.cpp