Click here to Skip to main content
15,909,324 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I save the inputs given from Edit control into a data file??? I am really new to Windows programming.Can someone please help me out.

Thanks in advance.
Posted
Updated 22-Jun-16 3:19am
v2

this is how you create xml file in win CE.

VB
Dim _writer As New XmlTextWriter(<pre lang="cs">System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)& "\Settings.xml", System.Text.Encoding.UTF8)
          _writer.WriteStartDocument(True)
          _writer.Formatting = Formatting.Indented
          _writer.Indentation = 2
          _writer.WriteStartElement("CONTENTS")

          _writer.WriteStartElement("SERVER")
          _writer.WriteString("abc")
          _writer.WriteEndElement()
        
          _writer.WriteEndElement()
          _writer.WriteEndDocument()
          _writer.Close()</pre>
 
Share this answer
 
v4
Comments
Jith125 10-Dec-12 6:26am    
thanks a ton !!!
AnkitGoel.com 10-Dec-12 6:29am    
please mark as answer if helped
Jith125 18-Dec-12 8:35am    
can u give some code for generation of a text file in Windows CE.6 !!
You have multiple options-
1) Sql Server CE
2) Text File
3) XML file

choose anyone.
 
Share this answer
 
Comments
Jith125 10-Dec-12 5:29am    
is there any particular command for converting the data written in edit control to a Text file??
AnkitGoel.com 10-Dec-12 5:32am    
i think, no you have to use File.Write() method
Jith125 10-Dec-12 5:51am    
thanks a lot for your quick response .
Jith125 10-Dec-12 5:52am    
if possible can u post some links for doin so .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900