Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
QuestionAsynchronous Sockets Pin
joana.simoes27-Oct-09 1:44
joana.simoes27-Oct-09 1:44 
AnswerRe: Asynchronous Sockets Pin
Paulo Zemek27-Oct-09 3:04
mvaPaulo Zemek27-Oct-09 3:04 
GeneralRe: Asynchronous Sockets Pin
joana.simoes28-Oct-09 7:28
joana.simoes28-Oct-09 7:28 
AnswerRe: Asynchronous Sockets Pin
Jimmanuel27-Oct-09 5:00
Jimmanuel27-Oct-09 5:00 
Questionencrypt the app.config Pin
reza assar27-Oct-09 1:35
reza assar27-Oct-09 1:35 
AnswerRe: encrypt the app.config Pin
Pete O'Hanlon27-Oct-09 1:45
mvePete O'Hanlon27-Oct-09 1:45 
Questionlock some text files Pin
reza assar27-Oct-09 1:28
reza assar27-Oct-09 1:28 
AnswerRe: lock some text files Pin
Eddy Vluggen27-Oct-09 8:14
professionalEddy Vluggen27-Oct-09 8:14 
reza assar wrote:
i want to lock some text file in the specified directory
just two applications can access these files


Locking a file based on the application that's used for opening it is not supported by the file systems that I know.

reza assar wrote:
what should i do?


Review the specifications and research alternative solutions. Here's some to get you started;

* Is it necessary to 'lock' the file, or are you trying to prevent other people from reading the file? If the latter is the case, then try encrypting your text before you send it to the file.

* Could a container be used? You can store multiple documents in a zipfile, and protect them with a password.

* If speed is more important than having a textfile, consider using a dekstop-database like SQL CE.

HTH Smile | :)

I are Troll Suspicious | :suss:

GeneralRe: lock some text files Pin
reza assar9-Nov-09 18:36
reza assar9-Nov-09 18:36 
GeneralRe: lock some text files Pin
Eddy Vluggen10-Nov-09 3:42
professionalEddy Vluggen10-Nov-09 3:42 
QuestionADO.NET Entity Framework Pin
Pankaj Saha27-Oct-09 1:27
Pankaj Saha27-Oct-09 1:27 
AnswerRe: ADO.NET Entity Framework Pin
Not Active27-Oct-09 2:12
mentorNot Active27-Oct-09 2:12 
Questionactive single instance only Pin
reza assar27-Oct-09 1:24
reza assar27-Oct-09 1:24 
AnswerRe: active single instance only Pin
N a v a n e e t h27-Oct-09 1:28
N a v a n e e t h27-Oct-09 1:28 
GeneralRe: active single instance only Pin
Hristo-Bojilov27-Oct-09 1:58
Hristo-Bojilov27-Oct-09 1:58 
GeneralRe: active single instance only Pin
N a v a n e e t h27-Oct-09 2:10
N a v a n e e t h27-Oct-09 2:10 
GeneralRe: active single instance only Pin
Hristo-Bojilov27-Oct-09 2:22
Hristo-Bojilov27-Oct-09 2:22 
GeneralRe: active single instance only Pin
Luc Pattyn27-Oct-09 4:16
sitebuilderLuc Pattyn27-Oct-09 4:16 
AnswerRe: active single instance only Pin
anishkannan27-Oct-09 1:47
anishkannan27-Oct-09 1:47 
AnswerRe: active single instance only Pin
vtchris-peterson28-Oct-09 5:43
vtchris-peterson28-Oct-09 5:43 
GeneralRe: active single instance only Pin
reza assar9-Nov-09 18:41
reza assar9-Nov-09 18:41 
GeneralRe: active single instance only Pin
vtchris-peterson10-Nov-09 3:42
vtchris-peterson10-Nov-09 3:42 
QuestionHow to Avoid  in Excel while writing through C# Pin
Bharti Vermani27-Oct-09 1:19
Bharti Vermani27-Oct-09 1:19 
AnswerRe: How to Avoid  in Excel while writing through C# Pin
Gideon Engelberth27-Oct-09 3:23
Gideon Engelberth27-Oct-09 3:23 
GeneralRe: How to Avoid  in Excel while writing through C# Pin
Bharti Vermani27-Oct-09 19:18
Bharti Vermani27-Oct-09 19:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.