add state.cpp
load file content to state