Click here to Skip to main content
15,901,001 members
Home / Discussions / C#
   

C#

 
AnswerRe: Thumnails in C# Pin
N a v a n e e t h9-Nov-08 19:54
N a v a n e e t h9-Nov-08 19:54 
GeneralRe: Thumnails in C# Pin
Guffa9-Nov-08 23:23
Guffa9-Nov-08 23:23 
GeneralRe: Thumnails in C# Pin
N a v a n e e t h10-Nov-08 0:51
N a v a n e e t h10-Nov-08 0:51 
Questionpartial class Pin
netJP12L9-Nov-08 17:48
netJP12L9-Nov-08 17:48 
AnswerRe: partial class Pin
User 66589-Nov-08 19:11
User 66589-Nov-08 19:11 
AnswerRe: partial class Pin
Dave Kreskowiak10-Nov-08 3:29
mveDave Kreskowiak10-Nov-08 3:29 
QuestionThe process cannot access the file because it is being used by another process!! Pin
farid_colombia9-Nov-08 11:52
farid_colombia9-Nov-08 11:52 
AnswerRe: The process cannot access the file because it is being used by another process!! Pin
Mark Salsbery9-Nov-08 11:59
Mark Salsbery9-Nov-08 11:59 
GeneralRe: The process cannot access the file because it is being used by another process!! Pin
farid_colombia9-Nov-08 13:33
farid_colombia9-Nov-08 13:33 
GeneralRe: The process cannot access the file because it is being used by another process!! Pin
Mark Salsbery9-Nov-08 14:13
Mark Salsbery9-Nov-08 14:13 
GeneralRe: The process cannot access the file because it is being used by another process!! Pin
farid_colombia9-Nov-08 15:39
farid_colombia9-Nov-08 15:39 
GeneralRe: The process cannot access the file because it is being used by another process!! Pin
Mark Salsbery9-Nov-08 17:25
Mark Salsbery9-Nov-08 17:25 
GeneralRe: The process cannot access the file because it is being used by another process!! Pin
farid_colombia9-Nov-08 17:36
farid_colombia9-Nov-08 17:36 
GeneralRe: The process cannot access the file because it is being used by another process!! Pin
v.b.kiruthi4-Feb-09 19:53
v.b.kiruthi4-Feb-09 19:53 
AnswerRe: The process cannot access the file because it is being used by another process!! Pin
blackjack215010-Nov-08 0:43
blackjack215010-Nov-08 0:43 
From my experience, the static methods of the "File" class are very slow compared to streams. Maybe 100 times slower. If you have concurrent access to a file it is best to make the reads and writes as short as possible.

I recommend replacing File.ReadAllLines with:

using (StreamReader sr = new StreamReader(...))
{
lines = sr.ReadToEnd();    //this is a string. split it after to get the individual lines
}


Keyboard not found. Press F1 to continue.

QuestionRenaming or deleting a displayed imgae Pin
electriac9-Nov-08 9:52
electriac9-Nov-08 9:52 
AnswerRe: Renaming or deleting a displayed imgae Pin
Christian Graus9-Nov-08 9:54
protectorChristian Graus9-Nov-08 9:54 
AnswerRe: Renaming or deleting a displayed imgae Pin
Mark Salsbery9-Nov-08 9:54
Mark Salsbery9-Nov-08 9:54 
GeneralRe: Renaming or deleting a displayed imgae Pin
electriac9-Nov-08 10:00
electriac9-Nov-08 10:00 
GeneralRe: Renaming or deleting a displayed imgae Pin
Muammar©9-Nov-08 20:59
Muammar©9-Nov-08 20:59 
GeneralRe: Renaming or deleting a displayed imgae Pin
electriac10-Nov-08 0:21
electriac10-Nov-08 0:21 
GeneralRe: Renaming or deleting a displayed imgae Pin
Muammar©10-Nov-08 3:07
Muammar©10-Nov-08 3:07 
GeneralRe: Renaming or deleting a displayed imgae Pin
electriac10-Nov-08 3:19
electriac10-Nov-08 3:19 
GeneralRe: Renaming or deleting a displayed imgae Pin
Christian Graus9-Nov-08 10:04
protectorChristian Graus9-Nov-08 10:04 
GeneralRe: Renaming or deleting a displayed imgae Pin
electriac9-Nov-08 10:13
electriac9-Nov-08 10:13 

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.