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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alternative to a Text File

Status
Not open for further replies.

jr8rdt

IS-IT--Management
Feb 9, 2006
59
US
Hello
I wrote a program that reads a txt file and use it as a template/reference.

so when I distribute the program I would give the exe (I compile the pl) and the txt file.

The thing is I dont want this txt file to be exposed to users (security reason,etc etc). What are my alternatives?

make the txt a bin file? how ?
decode/encode?
any ideas ?

Thanks
 
Why not just put the txt file as part of the program itself?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
I thought about this. but it's just too long/too big.
the file has approx. 5K lines.
 
Hi

I would give a try to SQLite. There is no way to control the database access, but you can use your own functions as stored procedures, where you can implement the encryption/decryption.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top