名前空間
変種
操作

File input/output

提供: cppreference.com
< c

 
 
File input/output
機能します
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファイルアクセス
Original:
File access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
直接入力/出力
Original:
Direct input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fread
fwrite
書式なし入力/出力
Original:
Unformatted input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
書式付き入力/出力
Original:
Formatted input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファイル位置付け
Original:
File positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ftell
fgetpos
fseek
fsetpos
rewind
エラー処理
Original:
Error handling
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
clearerr
feof
ferror
perror
ファイルに対する操作
Original:
Operations on files
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
remove
rename
tmpfile
tmpnam
 
<stdio.h>ヘッダが狭い文字入力/出力機能を備えた一般的なファイル操作支援や物資の機能を提供します.
Original:
The <stdio.h> header provides generic file operation support and supplies functions with narrow character input/output capabilities.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
<wchar.h>ヘッダは、ワイド文字の入力/出力機能を持つ関数が用意されています.
Original:
The <wchar.h> header supplies functions with wide character input/output capabilities.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] 機能します

ファイルアクセス
Original:
File access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファイルを開きます
Original:
opens a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
別の名前で既存のストリームを開きます
Original:
open an existing stream with a different name
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルを閉じます
Original:
closes a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
実際のファイルで出力ストリームを同期させます
Original:
synchronizes an output stream with the actual file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ワイド文字I / Oと狭い文字間のファイルストリームを切り替えI / O
Original:
switches a file stream between wide character I/O and narrow character I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルストリーム用のバッファを設定します
Original:
sets the buffer for a file stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルストリーム用のバッファとそのサイズを設定します
Original:
sets the buffer and its size for a file stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
直接入力/出力
Original:
Direct input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファイルから読み込みます
Original:
reads from a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルに書き込みます
Original:
writes to a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
書式なし入力/出力
Original:
Unformatted input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
狭い文字
Original:
Narrow character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファイルストリームから文字を取得します
Original:
gets a character from a file stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルストリームから文字列を取得します
Original:
gets a character string from a file stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルストリームに文字を書き込みます
Original:
writes a character to a file stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルストリームに文字列を書き込みます
Original:
writes a character string to a file stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
stdinから文字を読み取ります
Original:
reads a character from stdin
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
stdinから文字列を読み込みます
Original:
reads a character string from stdin
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
stdoutに文字を書き込みます
Original:
writes a character to stdout
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
stdoutに文字列を書き込みます
Original:
writes a character string to stdout
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルストリームに戻す文字を入れます
Original:
puts a character back into a file stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ワイド文字
Original:
Wide character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファイルストリームからワイド文字を取得します
Original:
gets a wide character from a file stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルストリームからワイド文字列を取得します
Original:
gets a wide string from a file stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルストリームにワイド文字を書き込みます
Original:
writes a wide character to a file stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルストリームにワイド文字列を書き込みます
Original:
writes a wide string to a file stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
stdinからワイド文字を読み込みます
Original:
reads a wide character from stdin
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
stdoutにワイド文字を書き込みます
Original:
writes a wide character to stdout
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルストリームにワイド文字に戻します
Original:
puts a wide character back into a file stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
書式付き入力/出力
Original:
Formatted input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
狭い文字
Original:
Narrow character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stdin、ファイルストリームまたはバッファからの書式付き入力を読み取ります
Original:
reads formatted input from stdin, a file stream or a buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
(C99)
(C99)
(C99)
stdin、ファイルストリームまたは可変引数リストを使用してbuffer
から書式付き入力を読み取ります
Original:
reads formatted input from stdin, a file stream or a buffer
using variable argument list
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
プリントはstdout、ファイルストリームまたはバッファに出力をフォーマットします
Original:
prints formatted output to stdout, a file stream or a buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
プリントはstdout、ファイルストリームまたは可変引数リストを使用してbuffer
に出力をフォーマットします
Original:
prints formatted output to stdout, a file stream or a buffer
using variable argument list
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ワイド文字
Original:
Wide character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stdin、ファイルストリームまたはバッファから書式ワイド文字入力を読み取ります
Original:
reads formatted wide character input from stdin, a file stream or a buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
stdin、ファイルstream
または可変引数リストを使用してバッファから書式ワイド文字入力を読み取ります
Original:
reads formatted wide character input from stdin, a file stream
or a buffer using variable argument list
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
プリントはstdout、ファイルストリームまたはバッファにワイド文字出力をフォーマットします
Original:
prints formatted wide character output to stdout, a file stream or a buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
プリントはstdout、ファイルstream
または可変引数リストを使用してバッファにワイド文字出力をフォーマットします
Original:
prints formatted wide character output to stdout, a file stream
or a buffer using variable argument list
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイル位置付け
Original:
File positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
現在のファイル位置指示子を返します
Original:
returns the current file position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイル位置指示子を取得します
Original:
gets the file position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイル位置指示子は、ファイル内の特定の場所に移動します
Original:
moves the file position indicator to a specific location in a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイル位置指示子は、ファイル内の特定の場所に移動します
Original:
moves the file position indicator to a specific location in a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイル位置指示子は、ファイル内の先頭に移動します
Original:
moves the file position indicator to the beginning in a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
エラー処理
Original:
Error handling
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
エラーをクリアします
Original:
clears errors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
エンド·オブ·ファイルをチェックします
Original:
checks for the end-of-file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルのエラーをチェックします
Original:
checks for a file error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
stderrに現在のエラーの対応する文字列が表示されます
Original:
displays a character string corresponding of the current error to stderr
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルに対する操作
Original:
Operations on files
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファイルを消去
Original:
erases a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
ファイルの名前を変更します
Original:
renames a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
一時ファイルへのポインタを返します
Original:
returns a pointer to a temporary file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]
一意のファイル名を返します
Original:
returns a unique filename
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(機能) [edit]

[編集] タイプ

Defined in header <stdio.h>
タイプ
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
FILE
CI / Oストリームを制御するために必要なすべての情報を保持することが可能なタイプ
Original:
type, capable of holding all information needed to control a C I/O stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fpos_t
一意のファイル内の位置を特定することができるタイプ
Original:
type, capable of uniquely specifying a position in a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] マクロ

Defined in header <stdio.h>
stdin
stdout
stderr
エラー出力ストリームに関連付けられたFILE *型の出力stream
expressionに関連付けられたFILE *型の入力stream
expressionに関連付けられたFILE *型の式
Original:
expression of type FILE* associated with the input stream
expression of type FILE* associated with the output stream
expression of type FILE* associated with the error output stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
EOF
タイプintと負の値の整数定数式
Original:
integer constant expression of type int and negative value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
FOPEN_MAX
同時にオープンできるファイルの数
Original:
number of files that can be open simultaneously
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
FILENAME_MAX
サイズは最長のサポートされているファイル名を保持するためにchar型の配列のために必要
Original:
size needed for an array of char to hold the longest supported file name
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
BUFSIZ
setbufは()で使用されるバッファのサイズ
Original:
size of the buffer used by setbuf()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
_IOFBF
_IOLBF
_IONBF
示すsetvbuf関数への引数は、()を完全にバッファリングされていないI / Oを示す)行(setvbuf関数へのI /O
argumentをバッファリングされたことを示す)setvbuf関数(へのI /O
argumentをバッファリング
Original:
argument to setvbuf() indicating fully buffered I/O
argument to setvbuf() indicating line buffered I/O
argument to setvbuf() indicating unbuffered I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
SEEK_SET
SEEK_CUR
SEEK_END
ファイルの末尾からシークを示す(現在のファイルposition
argumentからfseekに求める指示(file
argumentの先頭からのfseekに求めることを示すfseekの引数()))
Original:
argument to fseek() indicating seeking from beginning of the file
argument to fseek() indicating seeking from the current file position
argument to fseek() indicating seeking from end of the file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
TMP_MAX
tmpnamの()によって生成することができるユニークなファイル名の最大数
Original:
maximum number of unique filenames that can be generated by tmpnam()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)
L_tmpnam
サイズは、tmpnam()の結果を保持するためにchar型の配列のために必要
Original:
size needed for an array of char to hold the result of tmpnam()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(マクロ定数)