Saving data

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Hello all,

I am new to this newsgroup but look forward to participating quite a
bit. I have a simple question which hopefully someone will be able to
answer. I am wanting to write an app with vb 6 or .net in which the app will
be responsible for keeping my different passwords, the associated website
program or whatever, and the last time the password was changed or updated.
When doing this i want the data to save onto te harddrive, but i would like
to do this without the use of a text file or a database file or abnything
like that. Is there anyway to save data such as this into a flat out raw
text format that only the computer can retrieve and read, or do i have to
use some other app such as text viewer to save the data.?
 
Hi Jason,

I think nobody will advice you what you want to do, but when you absolute
want that, you can look for the streamreader/streamwriter for at textfile,
(a textfile that is no textfile does not exist) or you can look for a binary
file using the "stream" or binaryReader/binaryWriter.

I hope this gives you some help.

Cor
 
* "Jason said:
answer. I am wanting to write an app with vb 6 or .net in which the app will
be responsible for keeping my different passwords, the associated website
program or whatever, and the last time the password was changed or updated.
When doing this i want the data to save onto te harddrive, but i would like
to do this without the use of a text file or a database file or abnything
like that. Is there anyway to save data such as this into a flat out raw
text format that only the computer can retrieve and read, or do i have to
use some other app such as text viewer to save the data.?

You will have to store the data in a file (for example a database). You
can use the classes from the 'System.IO' namespace to do that, like
'StreamWriter'/'StreamReader' or 'BinaryWriter'/'BinaryReader'. For
database questions, you may want to turn to this group:

<
Web interface:

<http://msdn.microsoft.com/newsgroup...roup=microsoft.public.dotnet.framework.adonet>
 
Hi Jason,

The "specs" are a little vague.
I am wanting to write an app with vb 6 or .net in which the app will
be responsible for keeping my different passwords, the associated website
program or whatever, and the last time the password was changed or
updated.

You just want to save your own personal passwords right? I take it this is
sort of an exercise for you and that you don't just want to download
something that does it already or just type the information into a notepad
file? First you should decide if you want to use VB6 or VB.Net.
When doing this i want the data to save onto te harddrive, but i would like
to do this without the use of a text file or a database file or abnything
like that. Is there anyway to save data such as this into a flat out raw
text format that only the computer can retrieve and read, or do i have to
use some other app such as text viewer to save the data.?

Generally speaking text files are "flat out raw text format" and everything
on your harddrive currently can only be retrieved and read by the computer
:-) The physical format isn't too terribly important though you'd probably
want to avoid a database server if you want "simple and cheap"

If you are worried about people being able to read the file you simply add
encryption . This can be added regardless of what format the file is so
again it just doesn't matter and once you have the software working you can
decide you do or don't like the format you chose and act accordingly. It's
not like you are locked into your first choice.

So I will suggest that you lay out what data you want to save and what
capabilities the app should have and start from there. If it's: Asset,
Account, Password, Date with Add, Edit, Delete and possibly Search then it's
pretty straightforward. My suggestion is that you don't implement the
encryption until after you have it working... it's harder to debug.

Tom
 
There are lots of
1.) ways you could do this. However, if you are saving passwords it would be
highy desirable to use a secure storage method. You could use an JET (
Access ) database and secure the databse with a password of its own.

2.) If you dont care about this, you could simply use a DataSet and save the
Data in XML format and retreive it again. But this is not really sensible
for security reasons.

Else,

3.) You could simply write it to a text file.

In any of the three secanarios, it would still be sensible to use an
encryption algorithm to store and retreive them.

Regards - OHM
 
Hello all,
I appreciate all your advice and you have all been very helpfull. Rather
then reply to each response in regards to my post i thought i would sum it
up here. Those of you who have replied know who you are and thank you. You
have been a tremendous help.
 
Back
Top