Editor in C

DOS based text editor in C

Page 1 of 1

7 Replies - 1363 Views - Last Post: 07 August 2001 - 12:39 AM Rate Topic: -----

#1 cowboyraj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 31-July 01

Editor in C

Posted 31 July 2001 - 11:04 PM

I need some help from experts in developing DOS based text
editor in C ,i use turbo c 2.0 compiler
Is This A Good Question/Topic? 0
  • +

Replies To: Editor in C

#2 malkiri  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 3
  • View blog
  • Posts: 364
  • Joined: 29-March 01

Re: Editor in C

Posted 01 August 2001 - 07:43 AM

That's not very helpful...what do you need help with, exactly? :)
Was This Post Helpful? 0
  • +
  • -

#3 nighthawk  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 1,269
  • Joined: 11-April 01

Re: Editor in C

Posted 01 August 2001 - 08:18 AM

ditto on malkiri
Was This Post Helpful? 0
  • +
  • -

#4 supersloth  Icon User is offline

  • serial frotteur - RUDEST MEMBER ON D.I.C.
  • member icon


Reputation: 4486
  • View blog
  • Posts: 28,399
  • Joined: 21-March 01

Re: Editor in C

Posted 01 August 2001 - 08:27 AM

yea, like what kind of editor?
Was This Post Helpful? 0
  • +
  • -

#5 cowboyraj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 31-July 01

Re: Editor in C

Posted 03 August 2001 - 03:09 AM

My project is to develop a file editor,exactly the editor
which we find in DOS,having almost all the facilities of it,
like opening a file,edit it,save it,create new file etc...
I just need a kick start,thank u
Was This Post Helpful? 0
  • +
  • -

#6 runtime error  Icon User is offline

  • Lucky.Code
  • member icon

Reputation: 3
  • View blog
  • Posts: 629
  • Joined: 19-March 01

Re: Editor in C

Posted 03 August 2001 - 10:26 PM

Before i begin i would just like to say that my advice is not always correct and I have never attempted to create a text editor. Now that that is out of the way. I will begin.

A text editor sounds and looks like an eazy program but trust me it is not. It is a pretty hard task if you ask me.

The first thing that we run into is that normal character arrays won't work here. Because with them you need to know exactly how many letters and words the user will put in. but how will we know how big the letter to aunt betty be?
we don't. Which means we don't know how much memory it will take up. To solve this we need to allocate memory in the heap. The heap is all the memory that the computer is not using.
to do this look up the function malloc()

saving and opening and all that other stuff should be pretty easy use the FILE operations that come in the stdio.h library.

umm the rest is pretty much looking up the functions that you need. Good luck.

p.s:
Wow that Absolute beginners guide to C really helped. Im usually just a c++ man.

Was This Post Helpful? 0
  • +
  • -

#7 nighthawk  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 1,269
  • Joined: 11-April 01

Re: Editor in C

Posted 03 August 2001 - 10:29 PM

hmmm, this sounds like a pretty big project, what the heck got you started on this cowboyraj?
Was This Post Helpful? 0
  • +
  • -

#8 cowboyraj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 31-July 01

Re: Editor in C

Posted 07 August 2001 - 12:39 AM

I know that this project gonna be difficult,but i will give
a try,thanks for the advice and i will always be in search
of advices and help,hoping for it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1