From: "Finland" Newsgroups: comp.os.msdos.djgpp Subject: writing text editor.. Date: 1 Aug 1998 14:23:05 GMT Organization: Scifi Communications International, http://www.sci.fi/, helpdesk AT sci DOT fi, +358 3 2899111 Lines: 59 Message-ID: <01bdbd4c$48051a20$LocalHost@default> NNTP-Posting-Host: cccxcviii.kdyn.saunalahti.fi To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Well HELLo!. i know that the world is full with text editors but still , i guess it wont do any bad. just few questions. lets imagine that the user is writing the first line and then he presses enter (what should change line). So how can it be programmed?. I know that all the written data will be stored in large buffer maybe in typedef structure, does it create overflow errors if i do it like this?. ex. #define max_line 65000 typedef struct { int line; /* does this have to be in here? */ char max[65000]; } data can i use following line -> data[max] ? because if i program the writing procedure like this... int i; for ( i=0; i