title: how to withdraw all tokens from the my contract in solidity
body: <h1 id="can-anyone-help-me">Can anyone help me?</h1>
  <p>I created a basic contract.But don't know the withdrawal function.Please help me.Thanks everyone
  I tried creating a basic function but it doesn't work</p>
  <pre><code>function withdraw() public {
      msg.sender.transfer(address(this).balance);
  }
  </code></pre>