Unique Identification number genrator using java : I am trying to create a uid genrator with java using file writer and reader i want it to generete id with serial 1 then 2 then 3 and so. on. but it isn't working correctly i want to store it in file so that it starts from last ended number when program starts again.