How would I go about making it where they type in something
(I know how to make them type things..) and then save like the entire file? like say
blah blah blah
then after so many lines or a certain key word is typed it askes
'Do you want to save?'
How would I go about making it where they type in something
(I know how to make them type things..) and then save like the entire file? like say
blah blah blah
then after so many lines or a certain key word is typed it askes
'Do you want to save?'
Well I don't know how to specifically save to other files, but you could make a loop that gets characters then turns each word into a seperate string (it would check for if getch()=\r). I believe you could then use strcmp() on the string to check for your desired word.
just a correction for above: it would probably do you a lot more good to check for if the space bar has been pressed than the return key (although checking for both might be good).
What I mean is like edit.com you know only so basic you type and then press say alt s and alt l for save/load.
do you mean something like getch(), then save if( getch() = 'S'); ?
Yea something like that I don't totaly get the whole fprint and stuff so it will be hard to write a prorgam that does that though
I don't either . I'm sure you can find some place that explains it, like off of www.google.com.
> How would I go about making it where they type in something
Several ways.
> (I know how to make them type things..)
That'll be useful for your assumed implimentation.
> and then save like the entire file?
The one that magically appeared?
Or, the one you previously created, with their specified filename?
> like say blah blah blah then after so many lines or a certain key word is typed it askes
There's a better way.
> 'Do you want to save?'
Same as above.
> What I mean is like edit.com you know only so basic you type and then press say alt s and alt l for save/load.
Which way are we going to do this now?
> I don't totaly get the whole fprint and stuff
Maybe you should totaly get the basics before tackling a text editor, and stuff.
The world is waiting. I must leave you now.