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

C#

 
AnswerRe: XML Serializing an Object that Inherits a List of itself Pin
Webnoi29-Jun-09 10:54
Webnoi29-Jun-09 10:54 
GeneralRe: XML Serializing an Object that Inherits a List of itself Pin
Patricker29-Jun-09 13:33
Patricker29-Jun-09 13:33 
QuestionWindows Service Starts multiple threads Pin
livez10-May-09 21:25
livez10-May-09 21:25 
AnswerRe: Windows Service Starts multiple threads Pin
N a v a n e e t h10-May-09 22:55
N a v a n e e t h10-May-09 22:55 
AnswerRe: Windows Service Starts multiple threads Pin
Nicholas Butler10-May-09 22:57
sitebuilderNicholas Butler10-May-09 22:57 
GeneralRe: Windows Service Starts multiple threads Pin
livez10-May-09 23:00
livez10-May-09 23:00 
QuestionSearching files Pin
Rajdeep.NET is BACK10-May-09 21:13
Rajdeep.NET is BACK10-May-09 21:13 
AnswerRe: Searching files Pin
Eddy Vluggen10-May-09 21:39
professionalEddy Vluggen10-May-09 21:39 
Rajdeep.NET wrote:
Suppose, I want to delete it with this code: System.IO.File.Delete(@"C:/simple.txt");


Won't work, you'll get a FileNotFoundException since the path is incorrect.

Create a method that reads all the filenames in a folder. Next, loop all those filenames to check whether "simple.txt" is among them. If the file is a folder, then call your function recursively to check those too.

It's a slow way of finding a file, but it works Smile | :)

Rajdeep.NET wrote:
And also tell me, if its possible to manipulate with a file without assigning its extension.


Can't be done, you'll need the extension. Otherwise you might accidentally delete "simple.jpg" or "simple.mp3" while you wanted to kill "simple.txt".

Good luck Smile | :)

I are troll Smile | :)

GeneralRe: Searching files Pin
Rajdeep.NET is BACK10-May-09 21:51
Rajdeep.NET is BACK10-May-09 21:51 
GeneralRe: Searching files Pin
Eddy Vluggen10-May-09 22:18
professionalEddy Vluggen10-May-09 22:18 
GeneralRe: Searching files Pin
Rajdeep.NET is BACK10-May-09 22:46
Rajdeep.NET is BACK10-May-09 22:46 
GeneralRe: Searching files Pin
Eddy Vluggen10-May-09 22:52
professionalEddy Vluggen10-May-09 22:52 
GeneralRe: Searching files Pin
Rajdeep.NET is BACK10-May-09 23:17
Rajdeep.NET is BACK10-May-09 23:17 
AnswerRe: Searching files Pin
Vikram A Punathambekar10-May-09 22:26
Vikram A Punathambekar10-May-09 22:26 
GeneralRe: Searching files Pin
Rajdeep.NET is BACK10-May-09 22:41
Rajdeep.NET is BACK10-May-09 22:41 
GeneralRe: Searching files Pin
Vikram A Punathambekar11-May-09 2:19
Vikram A Punathambekar11-May-09 2:19 
GeneralRe: Searching files Pin
Rama Krishna Vavilala29-May-09 9:49
Rama Krishna Vavilala29-May-09 9:49 
QuestionMy windows server trace is showing error Pin
avi_dadi200210-May-09 20:58
avi_dadi200210-May-09 20:58 
QuestionC# NETWORKING PROBLEM Pin
teddy110-May-09 20:46
teddy110-May-09 20:46 
AnswerRe: C# NETWORKING PROBLEM Pin
Dave Kreskowiak11-May-09 5:01
mveDave Kreskowiak11-May-09 5:01 
AnswerRe: C# NETWORKING PROBLEM Pin
Larryville12-May-09 4:09
Larryville12-May-09 4:09 
QuestionSeperate one string into 2 Pin
KIDYA10-May-09 20:45
KIDYA10-May-09 20:45 
AnswerRe: Seperate one string into 2 Pin
Anubhava Dimri10-May-09 21:06
Anubhava Dimri10-May-09 21:06 
GeneralRe: Seperate one string into 2 Pin
KIDYA10-May-09 21:25
KIDYA10-May-09 21:25 
GeneralRe: Seperate one string into 2 Pin
Anubhava Dimri10-May-09 21:40
Anubhava Dimri10-May-09 21:40 

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.