Gunakake alat baris perintah cURL kanggo nggunakake pamriksa prabédan file, mbandhingake rong TXT dokumen lan deleng prabédan antarane dokumen kasebut kanthi jelas ing output. Sampeyan ora perlu maneh mbandhingake dokumen kanthi manual. Elinga uga yen asil perbandingan bisa diekspor menyang DOCX, PDF, DOC lan liya-liyane.
Kita cURL SDK dirancang kanggo menehi asil sing paling akurat, sanajan perbandingan minangka fungsi sing kompleks.
Kadhangkala sampeyan kudu mesthekake yen dokumen ing TXT format durung diganti, lan yen wis, sampeyan kudu ngerteni apa bedane. Cukup gunakake alat diff cURL kanggo mbandhingake rong TXT file lan temokake bedane kabeh tembung utawa karakter tunggal. Kajaba iku, yen mung siji karakter ing tembung sing diganti, tembung iki bakal ditandhani minangka diganti kabeh.
Saiki sampeyan ora perlu maneh nglampahi wektu kanthi manual mbandhingake TXT dokumen, lan sampeyan bisa kanthi cepet nemokake owah-owahan cilik lan ngekspor bedane kasebut menyang dokumen kanthi format sing trep.
Priksa kepiye solusi kanggo mbandhingake TXT file nggunakake cURL SDK. Kanggo entuk iki, muat TXT file sing pengin dibandhingake lan pilih format file ekspor - bakal dimuat kanthi otomatis sawise mbandhingake.
Elinga yen sampeyan kudu nampa kabeh revisi ing dokumen sing dibandhingake sadurunge nelpon metode perbandingan, kaya sing ditampilake ing conto kita:
// Upload dokumen menyang panyimpenan maya.
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Input1.txt" \
-X PUT \
-H "Content-Type: multipart/form-data" \
-H "Authorization: Bearer ####################" \
-F FileContent="@%FileName1%"
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Input2.txt" \
-X PUT \
-H "Content-Type: multipart/form-data" \
-H "Authorization: Bearer ####################" \
-F FileContent="@%FileName2%"
// Mbandhingake dokumen ing awan.
curl -v "https://api.aspose.cloud/v4.0/words/Input1.txt/compareDocument?destFileName=Output.txt" \
-X PUT \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ####################" \
-d "{\"Author\":\"author\",\"ComparingWithDocument\":\"Input2.txt\"}"
// Download dokumen asil saka panyimpenan maya.
curl -v "https://api.aspose.cloud/v4.0/words/storage/file/Output.txt" \
-X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ####################" \
Ngundhuh lan nginstal utilitas curl. Tututi Instructions iki supaya cepet entuk kredensial keamanan sing dibutuhake lan ngakses REST API kita.
Ora ana syarat khusus kanggo nggunakake alat iki.
Sampeyan bisa nindakake operasi mbandhingake kanggo format file liyane: