Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 5 years, 11 months ago. Active 5 years, 11 months ago. Viewed 2k times. Is there a way to avoid showing of text data being obviously visible in binary files? Imports System Imports System. Object, ByVal e As System. EventArgs Handles Button1. Open fileName, FileMode.
Create writer. Write "This is my secret password" writer. Write 1. Write 10 writer. So how do i get program user not to see the human readable information of binary text files? So how do i get program user not to see the human readable information of binary text files answer: encrypt it Currently a Google search yielded thousands of results pick your poison. Also I don't know how many times this has been answered here on SO.. Here's one instance alone stackoverflow. It's not just about copy paste, but rather trying to understand the proposed solutuion as well.
Show an example at least. You said you have a string of 1's and 0's. You should show us what you have and what you expect. Add a comment. Active Oldest Votes. Potatoswatter Potatoswatter k 22 22 gold badges silver badges bronze badges.
Can you edit this to not refer to 'binary strings' as I do not think given the context of the question it is very clear exactly what this means. Ah, and now he updated the question to say the same. I am getting this error. Is it my outdated mingw or ur code?
Bogatyr Bogatyr 19k 7 7 gold badges 58 58 silver badges 72 72 bronze badges. I have not missed any point, I have explained the reason for the observed behavior. When printable characters are stored to a file, they do not "change into garbage" just because the file type is binary.
Problem Statement: The task here is to read data from a text file and create a new binary file containing the same data in binary form. There is no requirement, as such, to store all values in a record in text format. The internal format can be used to directly store values.
An option that is good and can be taken as a choice is to define a structure for our record. Let us look at the methods that would be required to read the text file and write in the binary file. The function required for reading is fscanf and for writing is fwrite.
Reading: fscanf function is used to read the text file containing the customer data. Active Oldest Votes. How did did you retrieve the characters? I mean it still a readable string, not like this directupload. Where was string at linked image retrieved from? I mean the type of string, not the data itself — Nam Pham. Show 4 more comments. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
0コメント