scan -store implemented : writes the scanned config into file