FileCompare

 

int FileCompare(string filename1, string filename2);

 

ÁÖ¾îÁø µÎ°³ÀÇ ÆÄÀÏÀÌ ¼­·Î °°Àº ÆÄÀÏÀÎÁö¸¦ °Ë»çÇÑ´Ù.

 

ÇÔ¼öÀÎÀÚ

filename1 – ºñ±³ÇÒ Ã¹¹ø° ÆÄÀÏÀ̸§ (Àüü °æ·Î¸¦ »ç¿ëÇϵµ·Ï ÇÑ´Ù.)

filename2 – ºñ±³ÇÒ µÎ¹ø° ÆÄÀÏÀ̸§ (Àüü °æ·Î¸¦ »ç¿ëÇϵµ·Ï ÇÑ´Ù.)

 

return °ª

ÆÄÀÏÀÌ ¼­·Î °°À¸¸é 1À» return ÇÏ°í ÆÄÀÏÀÌ Á¸ÀçÇÏÁö ¾Ê°Å³ª ÆÄÀÏÀÌ ¼­·Î Ʋ¸®¸é 0À» returnÇÑ´Ù.

 

¿¹Á¦1

result = @FileCompare("C:\\TEXT1.TXT", "D:\\TEXT2.TXT");

if(result == 1) {

@Message("ÆÄÀÏÀÌ ¼­·Î ÀÏÄ¡ÇÕ´Ï´Ù. ");

}

else {

   @Message("ÆÄÀÏÀÌ °°Áö ¾Ê½À´Ï´Ù. ");

}

 

¹®Àå¼³¸í : C:\\TEXT1.TXT°ú D:\\TEXT2.TXT ÆÄÀÏÀ» ¼­·Î ºñ±³ÇÏ¿© °°À¸¸é ¡°ÆÄÀÏÀÌ ¼­·Î ÀÏÄ¡ÇÕ´Ï´Ù.¡± ½ÃÁö¸¦ Ãâ·ÂÇÏ°í ÆÄÀÏÀÌ °°Áö ¾ÊÀ¸¸é ¡°ÆÄÀÏÀÌ °°Áö ¾Ê½À´Ï´Ù.¡± ¸Þ½ÃÁö¸¦ Ãâ·ÂÇÑ´Ù.

 

°ü·Ã Ç׸ñ)

@FileClose()

@FileCompare()

@FileCopy()

@FileDelete()

@FileExists()

@FileGetSize()

@FileGetTime()

@FileNameSplit()

@FileMove()

@FileOpen()

@FileOpenLPT()

@FileRead()

@FileWrite()

@FileSeek()