Click here to Skip to main content
15,919,434 members
Home / Discussions / C#
   

C#

 
GeneralRe: External Sorting Pin
Guffa29-Jul-06 13:16
Guffa29-Jul-06 13:16 
GeneralRe: External Sorting Pin
Abbas Ali Butt24-Sep-06 9:40
Abbas Ali Butt24-Sep-06 9:40 
AnswerRe: External Sorting Pin
Guffa24-Sep-06 17:56
Guffa24-Sep-06 17:56 
QuestionUsing IEnumerator in C# Pin
kurangu29-Jul-06 8:40
kurangu29-Jul-06 8:40 
AnswerRe: Using IEnumerator in C# Pin
Colin Angus Mackay29-Jul-06 8:52
Colin Angus Mackay29-Jul-06 8:52 
QuestionGeneric/custom listbox Pin
Martin2329-Jul-06 8:22
Martin2329-Jul-06 8:22 
AnswerRe: Generic/custom listbox Pin
Ravi Bhavnani29-Jul-06 9:52
professionalRavi Bhavnani29-Jul-06 9:52 
Questionwierd c# error when trying to read from a file Pin
keroed_edmond29-Jul-06 7:54
keroed_edmond29-Jul-06 7:54 
i am calling a function thats reads a text file but the strange thing is that it only reads two files at a time

this fucntion calls the reader function
while((this.fromdateDT.Equals(this.todateDT))!=tru e)
{
day=Convert.ToString(this.fromdateDT.Day);
month=Convert.ToString(this.fromdateDT.Month);
year=Convert.ToString(this.fromdateDT.Year);
temp=year+"-"+month+"-"+day;
this.fileName=this.pathString+"smdrbackup"+temp+". csv";
try
{
this.runReader(this.fileName);
}
catch
{
}
this.fromdateDT=this.fromdateDT.AddDays(1);
}

runReader is the function that reads the file

the code snipet that does the reading here in that function is

Stream str= File.Open(CSVpath,FileMode.Open, FileAccess.Read,FileShare.ReadWrite);
StreamReader sr;
sr= new StreamReader(str);

but if say for example it is suppose to read the following files: k2006-10-12,k2006-10-13,k2006-10-14,k2006-10-15. it reads the first two and say the last two do not exist. but they do and if i skip out the first two and have k2006-10-14,k2006-10-15,k2006-10-16 it once again only reads the first two even though in another order it said it could not find them.

so basically its only accessing two files after that it says every other fiel does not exist.................anyone have had a problem like this

kenny
AnswerRe: wierd c# error when trying to read from a file Pin
S. Senthil Kumar29-Jul-06 8:17
S. Senthil Kumar29-Jul-06 8:17 
Questionmedia player control Pin
Vineet Rajan29-Jul-06 6:41
Vineet Rajan29-Jul-06 6:41 
QuestionDATABESE BACKUP Pin
alyafi29-Jul-06 6:36
alyafi29-Jul-06 6:36 
QuestionFloating ToolStrip PinPopular
hamidreza_buddy29-Jul-06 5:50
hamidreza_buddy29-Jul-06 5:50 
AnswerRe: Floating ToolStrip Pin
Ed.Poore29-Jul-06 12:53
Ed.Poore29-Jul-06 12:53 
QuestionFolderBrowseDialog Pin
AB777129-Jul-06 2:02
AB777129-Jul-06 2:02 
AnswerRe: FolderBrowseDialog Pin
Stefan Troschuetz29-Jul-06 6:41
Stefan Troschuetz29-Jul-06 6:41 
GeneralRe: FolderBrowseDialog Pin
AB777130-Jul-06 18:13
AB777130-Jul-06 18:13 
GeneralRe: FolderBrowseDialog Pin
AB777130-Jul-06 18:32
AB777130-Jul-06 18:32 
QuestionMoving app window with FormBorderStyle set to None Pin
QzRz29-Jul-06 1:36
QzRz29-Jul-06 1:36 
AnswerRe: Moving app window with FormBorderStyle set to None Pin
Ravi Bhavnani29-Jul-06 2:02
professionalRavi Bhavnani29-Jul-06 2:02 
AnswerRe: Moving app window with FormBorderStyle set to None Pin
AB777129-Jul-06 2:07
AB777129-Jul-06 2:07 
Questionhow to save image to Database with Datarow ? Pin
hdv21228-Jul-06 23:56
hdv21228-Jul-06 23:56 
QuestionHow to avoid duplicate entries in DataTable. Pin
VenkataRamana.Gali28-Jul-06 23:22
VenkataRamana.Gali28-Jul-06 23:22 
QuestionExport columns from datagridview to Excel Pin
simsen28-Jul-06 22:26
simsen28-Jul-06 22:26 
AnswerRe: Export columns from datagridview to Excel Pin
simsen29-Jul-06 7:17
simsen29-Jul-06 7:17 
QuestionC# code for mobile agent Pin
Shah Khalid28-Jul-06 22:10
Shah Khalid28-Jul-06 22:10 

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.