PDA

View Full Version : help in TURBO C


megire
03-18-2006, 10:22 PM
hello there, i've been using turbo c and we have been assigned to make our own text editors using link list. At first it was easy, but when i came to the file handling and scrolling part, i couldn't debug it. can anyone post a syntax or a function containing saving & opening files and scroll up and scroll down. ty (pls include a comment so i could defend my study)

Nook Schreier
03-22-2006, 03:44 PM
> pls include a comment so i could defend my study

No offense, but it wouldn't be "your study," then, would it ;) And a linked list for a text editor? Seems strange to me, although I haven't written anything in C/C++ for some time.

Opening/saving files isn't very hard at all, but it depends which method you are to use.
If you use fstream (http://www.codersource.net/cpp_file_io.html)
If you use iostream (http://www.gamedev.net/reference/articles/article1127.asp)

AMN
10-19-2006, 04:50 PM
What I'm asking for, is not related to any assignment...It is related to my self study...I have been using turbo C......

I want to design a text editor......but a text editor that can work on huge files.....not a simple text editor.......Am facing problem in deciding how to manage memory(scrolling)

In this regard,I want to know how to implement my own virtual memory?...../I have been searching for it and I think it has to do with Memory-Mapped Files? but which compiler to use since Turbo C doesn't have the required headers/functions?

If there is any other way of solving this problem....plz do tell me!...

plz,do reply.

Thanx