21 Aralık 2010 Salı

c programlamada kullanılan bazı dosya sitemi fonksiyonları

Yorum Bırak
Commonly Used C File-System Functions
bazı dosya okuma yazma vb işlemler için fonksiyonlar...


  1. fopen( )   bir dosyayı açar.(Opens a file.)
  2. fclose( ) açılan dosyayı kapatır (Closes a file.)
  3. putc( ) dosyaya bir karakter yazar (Writes a character to a file.)
  4. fputc( ) yukardaki fonksiyon ile aynı görevi yapar(Same as putc() .)
  5. getc( ) dosyadan bir karakter okur( Reads a character from a file.)
  6. fgetc( ) yukardaki fonksiyon ile aynı görevi yapar Same as getc() .
  7. fgets( ) dosyadan string okur (Reads a string from a file.)
  8. fputs( ) dosyaya string yazar(Writes a string to a file.)
  9. fseek( ) belirtilen byte ı dosyada arar (Seeks to a specified byte in a file.)
  10. ftell( ) mevcut dosya pozisyonunu döndürür(Returns the current file position.)
  11. fprintf( ) Is to a file what printf() is to the console.
  12. fscanf( ) Is to a file what scanf() is to the console.
  13. feof( ) dosyanın sonuna gelindiyse true döndürür( Returns true if end-of-file is reached.)
  14. ferror( ) herhangi bir hata olursa dosya işeminde true döndürür(Returns true if an error has occurred.)
  15. rewind( ) belirteçi dosya başına getirir(Resets the file position indicator to the beginning of the file.)
  16. remove( ) dosyayı siler(Erases a file.)
  17. fflush( ) Flushes a file.

0 yorum:

Yorum Gönder