| | |
converting a text or xml file into binary format
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
I don't know exactly what you mean.... do you want to convert every letter to it's binary equivalent, so that A would be 1000001 (65 Dec)? If that is the case, you need to understand that your file is going to be like, 8 times bigger than normal. The reason for that, is because every character is about 1 byte. So, the letter A is 1 byte, and the number 1 is 1 byte. The number 0 is 1 byte, and the letter z is 1 byte. The character # is 1 byte, and so is the © and Җ characters. Your text file is already in Binary format.... 1000001 in Binary would actually display the letter A. So, if you want the program to replace each instance of A with 1000001 in the text file.... it's going to be taking up 7 extra bytes to represent the letter A.... because 1 is 1 byte, 0 is 1 byte, and A is 1 byte.
If you are talking about having code in a text file, and wanting to make it an EXE, that's a different story.....
If you are talking about having code in a text file, and wanting to make it an EXE, that's a different story.....
•
•
Join Date: May 2009
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
I don't know exactly what you mean.... do you want to convert every letter to it's binary equivalent, so that A would be 1000001 (65 Dec)? If that is the case, you need to understand that your file is going to be like, 8 times bigger than normal. The reason for that, is because every character is about 1 byte. So, the letter A is 1 byte, and the number 1 is 1 byte. The number 0 is 1 byte, and the letter z is 1 byte. The character # is 1 byte, and so is the © and Җ characters. Your text file is already in Binary format.... 1000001 in Binary would actually display the letter A. So, if you want the program to replace each instance of A with 1000001 in the text file.... it's going to be taking up 7 extra bytes to represent the letter A.... because 1 is 1 byte, 0 is 1 byte, and A is 1 byte.
If you are talking about having code in a text file, and wanting to make it an EXE, that's a different story.....
![]() |
Similar Threads
- converting exe into xml (XML, XSLT and XPATH)
- Displayind data in XML file using HTML (RSS, Web Services and SOAP)
- How to re-organized XML file and call XML file from my software (RSS, Web Services and SOAP)
- Error reading XML file in Javascript (JavaScript / DHTML / AJAX)
- saving xml file from servlet request instance (Java)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Change Crystal OLE path?
- Next Thread: receive sms using vb6(codes)
Views: 4974 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






