# file.Size

- **Ortam:** İstemci, Sunucu, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/file.Size
- **Çeviri tarihi:** 2025-09-08

```lua
number file.Size( string fileName, string gamePath )
```

## Açıklama

Dosyanın boyutunu bayt cinsinden döndürür.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **fileName**: Dosyanın adı.
2. [string](https://gmod.tr/wiki/string) **gamePath**: Dosyaların ve dizinlerin aranacağı yol. Geçerli yolların bir listesi için [bu listeye](https://gmod.tr/wiki/File_Search_Paths) bakın.

## Döndürülenler

1. [number](https://gmod.tr/wiki/number): Dosya boyutu bayt cinsinden veya dosya bulunamazsa `-1`.

### Örnek

`helloworld.txt` dosyasının boyutunu yazdırır.

```lua
print( file.Size("helloworld.txt", "DATA") )
```

**Çıktı:** 8

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/file.Size
