suddenly_toast
suddenly_toast
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
thankyou
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
is that right?
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
{
Console.WriteLine("Create file from data?: (Y/N)");
Option = char.Parse(Console.ReadLine());
Option = char.ToUpper(Option);

if (Option != 'Y' && Option != 'N')
Console.WriteLine("Incorrect Response, please input a correct respose (Y/N)");
} while (Option != 'Y' && Option != 'N');


if (char.Equals(Option, 'Y'))
{
Manometer.Printvalues(density, interval);
};
if (char.Equals(Option, 'N'))
{
Environment.Exit(0);
};
{
Console.WriteLine("Create file from data?: (Y/N)");
Option = char.Parse(Console.ReadLine());
Option = char.ToUpper(Option);

if (Option != 'Y' && Option != 'N')
Console.WriteLine("Incorrect Response, please input a correct respose (Y/N)");
} while (Option != 'Y' && Option != 'N');


if (char.Equals(Option, 'Y'))
{
Manometer.Printvalues(density, interval);
};
if (char.Equals(Option, 'N'))
{
Environment.Exit(0);
};
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
okay let me try that 1 min
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
so is obj 1 or obj 2 the master that is the one being compared too
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
okay now for the if statements. when you say obj1 obj 2 is it comparing ob1 to obj 2?
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
there we go that makes sense
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
of pute output file there
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
si i changed the colsole to streamwriter and it was red squiogillys eveerywhere
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
because it did this - i sec
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
its saying that
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
Program does not contain a static 'Main' method suitable for an entry point
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
okat testing the code rn for the streamwriter problem. after that im still not sure how to fix the boolean comparisin prob
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
and this also brings up another question. if the y/n is not working is the m/w not working also?
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
i just need it to see if its y or n make it upper case then do what the y or n option is
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
yes lol
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
it compiled before i changed the console bits under stream writer to streawriter
81 replies
CC#
Created by suddenly_toast on 2/20/2023 in #help
❔ C# Will not write to txt file
So to fix would i change char to boolean or the option part to a char?
81 replies