|
read : UnixÀÇ fread ÇÔ¼ö¿Í µ¿ÀÏ
sysread : UnixÀÇ readÇÔ¼ö¸¦ È£Ãâ
syswrite: UnixÀÇ writeÇÔ¼ö¸¦ È£Ãâ
read (filevar, result, length, skipval);
skipval: °Ç³Ê¶Û byte¼ö. ¿É¼Ç
read (MYFILE, $scalar, 80);
readÇÔ¼ö´Â ½ÇÁ¦·Î ÀÐ¾î µéÀÎ ¹ÙÀÌÆ® ¼ö¸¦ ¹ÝȯÇÑ´Ù. ¸¸¾à MYFILEÀÌ ÆÄÀÏÀÇ ³¡(EOF)À̸é readÇÔ¼ö´Â 0À» ¹ÝȯÇÏ°í, ¿¡·¯°¡ ¹ß»ýÇϸé readÇÔ¼ö´Â ³Î ¹®ÀÚ¿À» ¹ÝȯÇÑ´Ù.
sysread (filevar, result, length, skipval);
sysread (MYFILE, $scalar, 80);
sysread (MYFILE, $scalar, 40, 80);
syswrite (filevar, data, length, skipval);
syswrite (MYFILE, $scalar, 80);
syswrite (MYFILE, $scalar, 40, 80);
|
|