Page 1 of 1

Text Application In C - Source Included

Posted: Mon Jan 07, 2008 6:17 pm
by Evan
Well to start out learning C i wanted to start with a easier kind of project so I could get a good handle on the basics. The idea of a text document creator and opener sounded relatively easy but it was harder than I thought. But after I started to learn some different things, it became very easy.

Well after a couple days of toying around in C I made a little franken-app.

It's pretty strait forward... It starts up and asks for input. The different input commands are:

open

create

Thats it. All of the input fields will only accept 256 characters and I am trying to figure out how to make it receive longer character arrays. I added a few comments and things to help you understand what my functions do and what needs to be added/fixed. Also I know I spelled the project name wrong. It was a typo.

Feel free to give any suggestions and comments on what I can do different or what to fix, ect...

Re: Text Application In C - Source Included

Posted: Tue Jan 08, 2008 9:30 am
by Patrickssj6
256 (255) characters because you store them in 1 byte only or ASCII encoding.

Posted: Tue Jan 08, 2008 12:51 pm
by Evan
Well what method could I use to have strings longer than 256?