How to keep text file from user

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: How to keep text file from user

 
0
  #11
Jul 7th, 2009
have a look at the attached for encrypting-decrypting your text file.
Attached Files
File Type: zip Security - Encrypt and Decrypt Data.zip (109.2 KB, 4 views)
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 5
Reputation: buyap is an unknown quantity at this point 
Solved Threads: 0
buyap buyap is offline Offline
Newbie Poster

Re: How to keep text file from user

 
0
  #12
Jul 8th, 2009
Thanx serkan, its a simple nice solution I embedded txt file as well which should have worked but .NET framwork exception says program cant find txt file on path ...\... \desktop\data.txt (path where application.exe was clicked to run). Can you suggest how can we make application.exe find txt file on path expected by program (to read it) which should be a simple & preferred solution OR any other solution than one you suggested. Thanks again.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,612
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 464
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: How to keep text file from user

 
0
  #13
Jul 8th, 2009
Use Application.ExecutablePath property.

  1. String path=System.IO.Path.GetDirectoryName (Application.ExecutablePath) + "\\data.txt";
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: How to keep text file from user

 
0
  #14
Jul 8th, 2009
to get the application path refer to this thread
http://www.daniweb.com/forums/thread196784.html
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 5
Reputation: buyap is an unknown quantity at this point 
Solved Threads: 0
buyap buyap is offline Offline
Newbie Poster

Re: How to keep text file from user

 
0
  #15
Jul 25th, 2009
Thanx to all! I have tried both solutions but as mentioned, being a beginner, I couldnt make it work, implement within project. Anyone please can provide with a small demo working example of either "embedding the txt file & modifying application path in prg. code" or "implement encrypt-decrypt to make txt file human unreadable( application readable) within the project" in order to make txt file either hidden or unreadable by end user etc. After your reply this thread needs to be closed, whether solved or unsolved (before dan's admin delete it) Thanx again.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,211
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 572
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast

Re: How to keep text file from user

 
0
  #16
Jul 29th, 2009
Try this
Attached Files
File Type: zip encryptDecrypt.zip (22.6 KB, 1 views)
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC