473,320 Members | 2,000 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Saving data

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.?
Nov 20 '05 #1
5 1698
Cor
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

Nov 20 '05 #2
* "Jason" <je**********@comcast.net> scripsit:
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:

<news://msnews.microsoft.com/microsoft.public.dotnet.framework.adonet>

Web interface:

<http://msdn.microsoft.com/newsgroups/default.asp?url=/newsgroups/loadframes.asp?icp=msdn&slcid=us&newsgroup=microso ft.public.dotnet.framework.adonet>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
"Jason" <je**********@comcast.net> wrote...

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
Nov 20 '05 #4
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

Jason wrote:
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.?

Nov 20 '05 #5
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.
Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: G-Factor | last post by:
Hi all I've just started learning about saving files. I got bit of a problem. The following code gives me an error about incompatible types. (Cannot covert from class character to char *). I...
4
by: John Kandell | last post by:
Hi, I posted this in the asp.net group, but didn't get a response. Maybe someone here can help me with this... --- Would someone be able to shed some light on what is the cost of saving a...
4
by: dale zhang | last post by:
Hi, I am trying to save and read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp Right now, I saved images without any...
3
by: JamesB | last post by:
I am saving image files from my website using the downloaddata on the web client. This gives me a byte array, which I am then saving to a file with the following code: ' Create the new, empty...
4
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my...
10
by: JoeC | last post by:
I am writing a game and all my game pieces are stored in a single vector of piece handles. I have the basics I can read and write char and number files but I am trying to do comthing more...
2
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
Hi, All, My app picks ccurrent time on the PC to retrieve data from sql DB, the Sql data is always data with non-daylight saving. The app runs on PC with both daylight saving and non-daylight...
1
by: WebCM | last post by:
We can do it in different ways. Configuration data are sent by POST. Some of them should be parsed before saving to file. Perhaps, I will use var_export(). However, how to do it best? 1....
1
by: MSwanston | last post by:
Hi I need some help with saving retreiving data from the cache, and how best to structure my code. FYI am working in VS2005/under .NET2 Framework. Ok, we have a series of reports that get run via...
0
by: madhu raju | last post by:
iam saving the data into Ms-Access database using Vb.net Application In that application iam using Data grid view to save the data into the database Here in the below code iam saving the name of...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.