8
Answers

Creating a text file

soumya p n

soumya p n

17y
4.9k
1
hiee,

Normally v create a text file using textwriter i.e,
TextWriter txt = new StreamWriter("path");
but in my case i need 2 create a text file whose name comes from database.
for example: i need 2 create a file with its name as each individual's mobile number which is stored in database.something like 1234567898.txt in which this number is retrieved frm database.
i tried doing something lik,
DataRow dr = ds.Tables[0].Rows[0];
string number = dr[5].ToString();
string path = "C:/"+number+".txt";
TextWriter txt = new StreamWriter(path);

But the error message says this path structure is not supported..

Wat can b done to solve this problem..?

Thanks in advance,
Soumya


Answers (8)
0
Gokhul Varman
NA 10.7k 9.4k 7y
Please refer the following links to get a solution:https://dzone.com/articles/signing-soap-messages
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.1.0/com.ibm.cics.ts.webservices.doc/wsSecurity/dfhws_soapmsg_signed.html 
0
Manikandan Murugesan
NA 20.5k 98.9k 7y
Refer the following Link : https://msdn.microsoft.com/en-us/library/ms824699.aspx
 
https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.2.0/com.ibm.cics.ts.webservices.doc/wsSecurity/dfhws_soapsigning.html