954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Saving data to a new text file on windows mobile

Hi Guys,

Surely this shouldnt be such a complex task! I have done this before for a desktop application where I typed in data on the UI clicked a button and a new text file was created on the C: drive and the data added.

Ive been googling and googling and searching forum upon forum but Im not having much luck.

I have already set up a VB project but my C# skills are stronger so I felt it would be wise to get it working using a language im more familiar with before delving into the deep end.

Just to give an overview of what I am doing:

A sales rep conducts questionnaires with customers via pen and paper ... I have to modernise this approach so that it uses windows mobile 6.

Im rather new to mobile development and cant suss out how/where to store the NEW file on the device so that I can then attach the file to an email...

Please could someone help point me in the right direction for this, I would be very greatful

:) thanks

Elmo

Elmo_loves_you
Junior Poster in Training
85 posts since Mar 2008
Reputation Points: 30
Solved Threads: 0
 

Surely it has an equivelent of "My documents"?

LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
 

Just incase anyone is interested ... Ive found a thread that explains the mobile file structure and how to find the new file you just created ....

http://forums.msdn.microsoft.com/en-US/csharpgeneral/thread/5e689655-5fa2-42c9-bd0d-469303309953/

:)

Elmo_loves_you
Junior Poster in Training
85 posts since Mar 2008
Reputation Points: 30
Solved Threads: 0
 

add new button and event for button
{
OpenFileDialog dijalog = new OpenFileDialog();
dijalog.ShowDialog();
TextBox.Text = dijalog.FileName;
}
adn you will see path of any folder, than you can use this path in your program

martinopresnik
Newbie Poster
1 post since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You