https://carbon.now.sh/?bg=rgba%28171%2C+184%2C+195%2C+1%29&t=seti&wt=none&l=text%2Fx-csrc&ds=true&dsyoff=20px&dsblur=68px&wc=true&wa=true&pv=56px&ph=56px&ln=false&fl=1&fm=Hack&fs=14px&lh=133%25&si=false&es=2x&wm=false&code=%2523include%2520%253Cstdio.h%253E%250A%2523include%2520%253Cstdlib.h%253E%250A%2523include%2520%253Cfcntl.h%253E%250A%2523include%2520%253Cunistd.h%253E%250A%250Avoid%2520error_handling%28char*%2520message%29%253B%250A%250Aint%2520main%28void%29%257B%250A%2520%2520int%2520fd%253B%250A%2520%2520char%2520buf%255B%255D%253D%2522Let%27s%2520go%21%255Cn%2522%253B%250A%250A%2520%2520fd%253Dopen%28%2522data.txt%2522%252C%2520O_CREAT%257CO_WRONLY%257CO_TRUNC%29%253B%250A%2520%2520if%2520%28fd%2520%253D%253D%2520-1%29%2520%257B%250A%2520%2520%2520%2520error_handling%28%2522open%28%29%2520error%21%2522%29%253B%250A%2520%2520%257D%250A%2520%2520printf%28%2522file%2520descriptor%253A%2520%2525d%255Cn%2522%252C%2520fd%29%253B%250A%250A%2520%2520if%28write%28fd%252C%2520buf%252C%2520sizeof%28buf%29%29%253D%253D-1%29%257B%250A%2520%2520%2520%2520error_handling%28%2522write%28%29%2520error%21%2522%29%253B%250A%2520%2520%257D%250A%2520%2520close%28fd%29%253B%250A%250A%2520%2520return%25200%253B%250A%257D%250A%250Avoid%2520error_handling%28char%2520*message%29%257B%250A%2520%2520fputs%28message%252C%2520stderr%29%253B%250A%2520%2520fputs%28%2522%255Cn%2522%252C%2520stderr%29%253B%250A%2520%2520exit%281%29%253B%250A%257D%250A



제코드인데여. 파일 쓰는거 공부하고있는데여


open으로 data.txt를 연거는 알곘는데,

write는 어케 알고 data.txt라는 경로에 써주는건가여?

어케 서로 같은 파일을 이야기하고있는건가여?


함수내에서 어떤 컨텍스트를 통해서 공유하고 있는건가요?