|
You can pipe the stdout to a file, like this (run from console)
C:\> MyProgram.exe >C:\Temp\MyFile.txt
Also works from Windows-shortcuts.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
If the following is true.
1. ONLY log output is written (presumably the case)
2. You can change the code
Then you might want to try using the System.Console.SetOut() method.
You can provide your own writer which you can then put the data anywhere you want.
|
|
|
|
|
If you can change the code you can basically change all Console.WriteLine("") to a log function.
Example:
public void WriteLog(string logtext){
StreamWriter writer = new StreamWriter("[path here]", true);
writer.writeLine(DateTime.Now.ToString() + ": " + text);
writer.Close();
}
hope this helps.
|
|
|
|
|
Hello my friends,
I want to develop a AutoData C# winform application but the first thing I want to know is, how become I all the technical information? I can not start the project...
I google it about a autodata database or a webservice that will give me information, but nothing found...
Can anyone, anywhere help me?
Regards,
KZ
|
|
|
|
|
Killzone DeathMan wrote: Can anyone, anywhere help me?
What's this "autodata" that you speak of? Is it a website, a service, an idea, an application, a business?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Unfortunately for you, AutoData is a subscription based service, so you have to purchase a subscription to get access to the underlying auto data. You can find more details here[^].
|
|
|
|
|
You are right men, thats it!
But I want to do a c# winform app that do all that stuff!
The problem is: where can I get all the technical information?
|
|
|
|
|
AutoData source this information from the vehicle manufacturers themselves.
|
|
|
|
|
Ohhh
Thanks men , I cannot browse all the information, its too much...
Thanks again and have a nice day!
Regards,
KZ
|
|
|
|
|
Sorry about that. Good luck.
|
|
|
|
|
Thanks for your help and if you need something let me know!
|
|
|
|
|
Pascal's Triangle in C program using loop
|
|
|
|
|
From what I can gather, it was Colonel Mustard in the Drawing Room with the Candlestick.
|
|
|
|
|
a free Google-fu search for you[^]
Next Google-fu search costs a pound
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Can I have a few of them please, I could use losing a few pounds!
If you send me a LMGTFY for weight loss I will be mightily displeased
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
somasaedi wrote: Pascal's Triangle in C program using loop
What about it? Also c != c#.
If you can't be bothered to read the site guidance about asking a question, I can't be bothered to tell you why I downvoted your question properly.
|
|
|
|
|
Would you like fries with that?
/ravi
|
|
|
|
|
Google is your best friend.
Google Search.[^]
Pascal's triangle in C#[^]
The first step in the acquisition of wisdom is SILENCE, the second is LISTENING, the third MEMORY, the forth, PRACTICE and the fifth is TEACHING others!
|
|
|
|
|
|
|
What bout it?
The first step in the acquisition of wisdom is SILENCE, the second is LISTENING, the third MEMORY, the forth, PRACTICE and the fifth is TEACHING others!
|
|
|
|
|
Hi I am looking for the best method and most secure method of connecting to a remote MySQL database from a c# application.
I have an application that allows users to login by verifying the credentials with a remote MySQL database. The whole application is dependant on the database.
So far I am just using the .net MySQL connector. but someone mentioned this is insecure especially since people decompile apps a lot and I have the database login details inside the app.
In your opinion what would be the best method of securely reading, updating and adding data to a remote MySQL database?
Thanks for any replies!
modified 11-Mar-21 21:01pm.
|
|
|
|
|
If you are only worried about your connection string, you can just use an encrypted section in the .config file.
Anyways, connecting to a SQL server directly is not secure. Traffic is not encrypted and anybody with a sniffer can see everything. You should instead connect to a TCP/IP server (that you write, obviously) using SSL that proxys the database calls. That way, you don't have the connection string in your app, but you are still going to have the server info in your app, so... The DB proxy method has additional benefits since it also allows you to compress data. SQL does not. A bit more work though...
|
|
|
|
|
Do you use compression in your apps and if so does it make a reasonable difference?
Never underestimate the power of human stupidity
RAH
|
|
|
|