---
layout: docs
title: createTemporaryFile
id: class.Facebook.HackCodegen._Private.Filesystem.createTemporaryFile
docid: class.Facebook.HackCodegen._Private.Filesystem.createTemporaryFile
permalink: /docs/reference/class.Facebook.HackCodegen._Private.Filesystem.createTemporaryFile/
---
# Facebook\\HackCodegen\\_Private\\Filesystem::createTemporaryFile()




``` Hack
public static function createTemporaryFile(
  string $prefix = '',
  bool $cleanup = false,
): string;
```




## Parameters




- ` string $prefix = '' `
- ` bool $cleanup = false `




## Returns




+ ` string `