Hi
I have some coded files in folder. I want to extract the text data from the files in a sorted form according to date and time.
Guide me with some code in this project.
Thanks
Kritika
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Aug 6, 2013, 4:49 AM EDT
kritika RanaRank #7,001 · 251 reputationPosted Aug 6, 2013, 8:14 PM EDT
They are the text files I want to extract some portion of the text which would the body of email from the files and paste it on the MS office outlook express and want to send the email automatically
Thanks
Kritika
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 6, 2013, 8:21 PM EDT
Please share the file format and sample data.
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 6, 2013, 8:41 PM EDT
I hereby attach the file .I want to copy the complete data and paste it in MS office outlook express and send as email . This file is opened with any editor like wordpad
Thanks
Kritika
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 6, 2013, 8:48 PM EDT
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 6, 2013, 8:56 PM EDT
Hope you get it this time
Thanks
Kritika
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 6, 2013, 9:11 PM EDT
string filename = @"C:\Test\R49-4002.041";
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 6, 2013, 9:21 PM EDT
The code you send is just reading the content but how to paste it in outlook express and send as email.
Thanks
Kritika
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 6, 2013, 9:24 PM EDT
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 6, 2013, 9:33 PM EDT
kritika RanaRank #7,001 · 251 reputationPosted Aug 6, 2013, 9:35 PM EDT
I want to make my own code for that. Is it possible with c# coding?
Kritika
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 6, 2013, 9:39 PM EDT
http://msdn.microsoft.com/en-us/library/vstudio/cc668191.aspx
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 6, 2013, 9:51 PM EDT
How to link subject and body with that file.
void Inspectors_NewInspector(Microsoft.Office.Interop.Outlook.Inspector Inspector)
{
Outlook.MailItem mailItem = Inspector.CurrentItem as Outlook.MailItem;
if (mailItem != null)
{
if (mailItem.EntryID == null)
{
mailItem.Subject = "This text was added by using code";
mailItem.Body = "This text was added by using code";
}
}
}
Thanks
kritika
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 6, 2013, 10:04 PM EDT
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 6, 2013, 10:14 PM EDT
Because there are large number of files in a directory. First I have to sort the files according to date and time and then send as email . I just want to make this process automatic by clinking on a single button. If this is possible with c# then please assist me on this project.
Thanks for your assistance .
kritika
kritika RanaRank #7,001 · 251 reputationPosted Aug 6, 2013, 10:16 PM EDT
If my requirement is possible without using outlook then please guide me with that also.
Kritika
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 6, 2013, 10:23 PM EDT
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 6, 2013, 10:25 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 6, 2013, 10:32 PM EDT
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 6, 2013, 10:35 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 6, 2013, 10:37 PM EDT
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 6, 2013, 10:41 PM EDT
Thanks