0
I’m trying to create a journal that has a reminder class to add only the reminder outside of the journal.
Good people have a problem here at school and wanted to know something, how to make the text I wrote stay safe, even after closing the console that text stay there.
Note: I have to use queue, I’m not using Forms and have to be object oriented. If you want to understand better I put the code here.
REMINDER CLASS CODE:
private string annotate; private string data; Private string importance;
public Lembrete(String anotarx, String datax)
{
anotar = anotarx;
data = datax;
importancia = Importancias.RAZOAVEL;
}
public String Anotar
{
get
{
return anotar;
}
set
{
anotar = value;
}
}
public String Data
{
get
{
return data;
}
set
{
data = value;
}
}
public String Importancia
{
get
{
return importancia;
}
set
{
importancia = value;
}
}
public String RetornarLembrete()
{
String texto = "";
texto = anotar + "" + data;
return texto;
}
}
I think you better put the code to help understand the problem, you want to save the file even if the program is closed ? Saving yourself in a txt helps ?
– Renan Silveira
Save text would be to display, query? Save only one text or several?
– Alexandre Cavaloti
I want that when the user type something in the reminder, the one he typed automatically save when it closes and when it opens again, the text he typed before still remains there.
– Vinicius Leoncio
view, query and if the user wants to edit. It’s a little complicated for me because I’m still learning it :p
– Vinicius Leoncio