Bandhingake rong TXT nggunakake cURL

Alat baris perintah cURL kuat kanggo mbandhingake TXT file ing PDF, Word, HTML, TXT, MD lan format liyane

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.

Ndeleng potongan kode

Bandhingake TXT ing cURL

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.

Coba mbandhingake TXT dokumen

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:

Unggah file sing dibandhingake
Kode roto
Unggah file kapindho kanggo mbandhingake
Pilih format target saka dhaptar
//  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 ####################" \
Kode roto
  
Nyalin kode cURL menyang clipboard

Cara Mbandhingake rong versi file

  1. Instal cURL
  2. Entuk kunci aplikasi sampeyan kanggo nggunakake Aspose.Words Cloud for cURL
  3. Pass token Bearer ing header Wewenang
  4. Muat rong TXT dokumen kanggo mbandhingake
  5. Telpon metode /compareDocument kanggo mbandhingake TXT docs
  6. Download dokumen asil saka panyimpenan maya

cURL perpustakaan kanggo nggunakake mbandhingake

Ngundhuh lan nginstal utilitas curl. Tututi Instructions iki supaya cepet entuk kredensial keamanan sing dibutuhake lan ngakses REST API kita.

Requirements Sistem

Ora ana syarat khusus kanggo nggunakake alat iki.

Format file liyane sing didhukung

Sampeyan bisa nindakake operasi mbandhingake kanggo format file liyane:

5%

Langganan kanggo Aspose Update Product

Entuk buletin saben wulan lan tawaran langsung dikirim menyang kothak layang.

© Aspose Pty Ltd 2001-2024. Kabeh hak dilindhungi undhang-undhang.