Understanding hex dump of a file generated by Java? -


यहाँ मेरा कोड है:

  फ़ाइल फ़ाइल = नया फ़ाइल ("test.txt" ); file.createNewFile (); आउटपुटस्ट्रीम आउटपुट स्ट्रीम = नया फाइलऑप्टपुट स्ट्रीम (फ़ाइल); outputStream.write (65); outputStream.write (66); outputStream.flush (); outputStream.close ();  

जब मैं एक टेक्स्ट एडिटर में test.txt खोलता हूं तो मुझे

  AB  

यूटीएफ 65 और 66 के साथ -8 अक्षर।

मैं फ़ाइल के हेक्स डंप लेता हूं और देखता हूं:

  फ़ाइल का स्वामी: koraytugay समूह के स्वामी: स्टाफ फ़ाइल का आकार: 2 बाइट्स फ़ाइल निर्माण तिथि: 2014-11-04 13:18:45 +0000 फ़ाइल संशोधन तिथि: 2014-11-04 13:19:01 +0000 हेक्स डंप: [] 41 42 एबी   < P> तो क्या है [41 41] यहां क्या मतलब है? 65 और 66 क्यों नहीं? 

दशमलव संख्या 65 है 41 हेक्साडेसीमल।

दशमलव संख्या 66 है 42 हेक्साडेसीमल।


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -