Click here to Skip to main content
16,011,170 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
Dave Kreskowiak25-Oct-07 5:43
mveDave Kreskowiak25-Oct-07 5:43 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
kendo1725-Oct-07 6:10
kendo1725-Oct-07 6:10 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
Dave Kreskowiak25-Oct-07 6:28
mveDave Kreskowiak25-Oct-07 6:28 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
kendo1725-Oct-07 7:37
kendo1725-Oct-07 7:37 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
Dave Kreskowiak25-Oct-07 8:08
mveDave Kreskowiak25-Oct-07 8:08 
GeneralRe: VB.Net 2003 and Access database Web Services Client/Server Pin
kendo1725-Oct-07 14:04
kendo1725-Oct-07 14:04 
QuestionSystem.IO BinaryReader and Data Structures Pin
AAGTHosting24-Oct-07 8:51
AAGTHosting24-Oct-07 8:51 
AnswerRe: System.IO BinaryReader and Data Structures Pin
Dave Kreskowiak24-Oct-07 9:16
mveDave Kreskowiak24-Oct-07 9:16 
AAGTHosting wrote:
I thought that I would use binary files so that noone can open my files and physically see the contents of them.


Who told you that?? Writing a string to a binary file is not a form of encryption of protection for the files contents. You will still be able to see the string if you open the file in Notepad. It'll just be surrounds by a bunch of other junk that isn't so readily readable.


AAGTHosting wrote:
1) Am I supposed to store binary data in a data structure?


You could, but you don't have to.


AAGTHosting wrote:
2) Do I need to define the length of each string column in the data structure record?


Yep.


AAGTHosting wrote:
3) Can I search the contents of the binary file (array?) by for an example name, column or line number?


Nope. You'd have to read the file into a collection of records, then search the collection.


You're complicating things more than they should be. You could easily get away with doing this in an XML file. You could even encrypt the sensitive data and write the encrypted data to the file, only decrypting it when the file is read back into your app.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


AnswerRe: System.IO BinaryReader and Data Structures Pin
dBrong24-Oct-07 9:24
dBrong24-Oct-07 9:24 
GeneralRe: System.IO BinaryReader and Data Structures Pin
AAGTHosting24-Oct-07 17:31
AAGTHosting24-Oct-07 17:31 
AnswerRe: System.IO BinaryReader and Data Structures Pin
Andy_L_J24-Oct-07 22:55
Andy_L_J24-Oct-07 22:55 
AnswerRe: System.IO BinaryReader and Data Structures Pin
Guffa24-Oct-07 9:48
Guffa24-Oct-07 9:48 
QuestionGetting the message ' 1004 : Unable to set the PrintGridlines property of the Pagesetup class' Pin
rswamy7024-Oct-07 8:05
rswamy7024-Oct-07 8:05 
AnswerRe: Getting the message ' 1004 : Unable to set the PrintGridlines property of the Pagesetup class' Pin
Dave Kreskowiak24-Oct-07 8:25
mveDave Kreskowiak24-Oct-07 8:25 
GeneralRe: Getting the message ' 1004 : Unable to set the PrintGridlines property of the Pagesetup class' Pin
rswamy7024-Oct-07 8:30
rswamy7024-Oct-07 8:30 
GeneralRe: Getting the message ' 1004 : Unable to set the PrintGridlines property of the Pagesetup class' [modified] Pin
Dave Kreskowiak24-Oct-07 9:10
mveDave Kreskowiak24-Oct-07 9:10 
QuestionComponent to burn data cd's Pin
dBrong24-Oct-07 6:19
dBrong24-Oct-07 6:19 
AnswerRe: Component to burn data cd's Pin
Dave Kreskowiak24-Oct-07 7:04
mveDave Kreskowiak24-Oct-07 7:04 
AnswerRe: Component to burn data cd's Pin
Christian Graus24-Oct-07 13:07
protectorChristian Graus24-Oct-07 13:07 
GeneralRe: Component to burn data cd's Pin
dBrong24-Oct-07 13:39
dBrong24-Oct-07 13:39 
GeneralRe: Component to burn data cd's Pin
Christian Graus24-Oct-07 20:55
protectorChristian Graus24-Oct-07 20:55 
GeneralRe: Component to burn data cd's Pin
dBrong25-Oct-07 3:35
dBrong25-Oct-07 3:35 
AnswerRe: Component to burn data cd's Pin
dBrong6-Nov-07 6:53
dBrong6-Nov-07 6:53 
Questionmemory corruption detection tool needed Pin
in9mar24-Oct-07 5:52
in9mar24-Oct-07 5:52 
AnswerRe: memory corruption detection tool needed Pin
Dave Kreskowiak24-Oct-07 6:53
mveDave Kreskowiak24-Oct-07 6:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.