> For the complete documentation index, see [llms.txt](https://hntarnsmwre.gitbook.io/hnta-plugins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hntarnsmwre.gitbook.io/hnta-plugins/how-to/calls/functions-without-using.md).

# Void Functions

You can hook methods with outside methods...<br>

```
private static void WriteFile(string data)
        {
            string path = System.IO.Directory.GetCurrentDirectory() + "\\log.txt";
            System.IO.File.WriteAllText(path,data);
        }
```

and call it in method&#x20;

```
 using (var wc = new System.Net.WebClient())
                {
                    string contents = wc.DownloadString("some-site-with-data.com/file.txt");
                    WriteFile(contents);
                }
```
