
Hi guys I was wondering how can I make this program in java with threads. I need to create a file and write in it (i know how to do that) but by listening in some port all the data that is being send until reaches an specific size Im kind LOST GUYS! I need help Im a beginner :(

It has to listen from any port **port=6001 (example) Filesize=5120 kb** I really need some help guys :(