I have a notepad,which having a data store into it and then overwrite by a new data every 1 second constantly.
I want to read the data (which is the total bandwidth usage of my whole WLAN)which changing every 1 second.
From here,I want to use the data to do an admission control of the LAN.
This is basically how is the idea:
1) Read the BW data.
2) Set a Bandwidth limit (eg: 1000000 Mps)
3) Compare the BW data I read to the BW limit, if exceed the limit,I want to temporary disable my window DHCP service,So that client go into my LAN.
4) If the BW going below the BW limit, the DHCP service have to automatically start again.

Anyone can help me on that? What programming language is more suitable to use?
Thousands of appreciate enclosed here for those who willing to help me!!