No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
Hi friends i want to read a csv file and then store it in sql server 2005 table , know how to read a file but i don't know how do i write it in the table. plz help me | |
Re: hey you can try this code in C# [code] double epoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000; Console.WriteLine(epoch.ToString()); [/code] this will help to convert current time to unix time stamp. | |
hi experts i have a csv file which look like this country,date,[COLOR="red"]code[/COLOR],time mexico,3/13/2008,[COLOR="red"]92,[/COLOR]00:00:00 mexico2,3/13/2008,[COLOR="red"]5214[/COLOR],00:00:00 mexico2,3/13/2008,[COLOR="red"]5214[/COLOR],00:00:00 i am reading the file like this [code] StreamReader sr = new StreamReader(@"C:\Documents and Settings\jitendra\Desktop\RIC_SELL_080318.csv"); string strline=""; string[]value=null; while(!sr.EndOfStream) { strline=sr.ReadLine(); value=strline.Split(','); if(values.Lenght >3 ) { Console.WriteLine(values[2].ToString()); } } [/code] so on doing this i … | |
Hi friends can any body tell me how can i move a whole statement matching with the search string to a new file in C# any help is appreciated please... | |
hey friends i am reading a csv file and i have to read a specifice coloumn form the file and that coloumn contains date and i have to read the date first and then keep a validation that if the dates in the file are between some dates then the … | |
hi friends i have created a code which searches for the particular word from two different files and creates a new file with the records in it but i am not able to search digits from the string the code of mine goes here: [code] StreamReader sr = new StreamReader(@"C:\Documents … |
The End.