Post: How would someone go about doing this? [C#]
05-27-2012, 08:39 AM #1
DlBSY993
There's 0nly 1..
(adsbygoogle = window.adsbygoogle || []).push({}); Well Basically I have made a database sort of program which you have multiple text boxes where you fill in information on say customers.

What I need to do is, make all the TextBox1 ,2 , 3 All save into one .txt File so it's easily readable. in C# Smile

Cheers I'm very new to C# programming and windows programming full stop so...



This is what I have atm:

You must login or register to view this content.

I need it to save like

Name:

Address :

Like that in the .txt
(adsbygoogle = window.adsbygoogle || []).push({});
05-27-2012, 10:08 AM #2
Newelly
Can’t trickshot me!
This may help :y:
You must login or register to view this content.

The following user thanked Newelly for this useful post:

DlBSY993
05-27-2012, 11:33 AM #3
DlBSY993
There's 0nly 1..
Originally posted by LouisSimpson View Post
This may help :y:
You must login or register to view this content.


Thanks buddy Winky Winky
05-27-2012, 06:38 PM #4
Correy
I'm the Original
if i was you i would use xml, look it up.. it's very simple Smile
05-31-2012, 02:26 PM #5
Dudevid
Do a barrel roll!
Originally posted by Correy View Post
if i was you i would use xml, look it up.. it's very simple Smile


+1 on this. XML is much better data transfer format. You'll have more options for working with the data in the future if you choose XML. JSON's a good choice, too.

The following user thanked Dudevid for this useful post:

Correy
06-03-2012, 02:43 AM #6
Pichu
RIP PICHU.
You can have it stream two different files to one directory. Have it create a new XML file and .txt file, unless you want there to be one massive XML file where you can then have a combobox to select the different entry names to make edits to.

The following user thanked Pichu for this useful post:

Newelly
06-03-2012, 02:54 AM #7
caleb01
Little One
Hey would you mind telling me what XML is used for? I have a book that I found in my dads pile of books that teaches XML, but from what i've seen it's not really useful. I prefer powerful languages that can do lots of things...what is XML's purpose and is it really neccessary to learn or should is it a language that is not needed often?
06-13-2012, 12:41 AM #8
Newelly
Can’t trickshot me!
Originally posted by caleb01 View Post
Hey would you mind telling me what XML is used for? I have a book that I found in my dads pile of books that teaches XML, but from what i've seen it's not really useful. I prefer powerful languages that can do lots of things...what is XML's purpose and is it really neccessary to learn or should is it a language that is not needed often?


Well XML is not there to display data but it does carry it, however it is a markup language like HTML.
You can also define your own tags since there not predefined.

XML actually does NOTHING it's more of a structure than anything... It can be a little hard to understand since XML was created to structure, store, and transport information forwards/backwards. Below is an example of a note to you (caleb01), from me (LouisSimpson), stored as XML:

But before continuing to learn this 'structure/language' it's good to have some sort of understanding with HTML, Javascript this is not really necessary but will work in an advantage. Both XML and HTML was designed for different approaches and goals:

- XML was created/designed to store data as well as transport it with focus on what data is.
- HTML was created/designed to display data as well as focus on how it looks.

Suggestions:
You must login or register to view this content.
You must login or register to view this content.

:y:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo