Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating files in VB

Status
Not open for further replies.

napio

Technical User
Aug 9, 2002
6
PE
how do I create a file that can only be opened with my program using VB?
 
well thats not possible ;) but you mean text file type? it can be open with the 'open with...' feature in windows... but all you reall yhave to do is save the file with any ending... ie. myfile.pfl is the format i use for one of my programs... and it will still look at it as a text file :) hope this helps :) in the begining man created code.
in the end code will create man.
clones are coming only matter of time.
examples?
 
well, is VB going to store variables or anything in the text file?
 
not sure what you ment by that... but it will save everything you tell it to... if you wan tthe file to save



{somehting}
special=nothing good




then that is exactly what it will save -shrug if im far from what yr talkign abotu please enlighten me what you mean. in the begining man created code.
in the end code will create man.
clones are coming only matter of time.
examples?
 
Napio,

To open any file only with your program, you can do one thing, but it is a bit difficult. Anyway, one of the solution which I used for a similar problem was to create a "Dll" file in VB with two functions "Encrypt" and "Decrypt" to encode and decode any file. Now initally you encrypt your file separately. When your program is run, you call the "Dll file" routine "Decrypt" to decode the file, work with it and when your program is closed you "Encrypt" it.

This will prevent your program from being accessed other than your program.

Hope this helps,
Regards.
----------------------------------------- There is always a new solution for the same problem.

Anonymous
 
I don't know , what kind of information you want to saved in your file.
but this an Idea you can use a database file with password , that no body can open your database file just your program "or hacker sure"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top