Weight ?

I'm 4"11 , 180lbs at 20 yrs old . I've been labeled obesity from my doctor since 2009, how can I loose weight ? I've tried eating right , I went to the gym I wasn't losing weight and I told my doctors, I walk 24/7 for miles on ends and nothing . I'm tired of being fat. Any thing work for you ?