70 1
How to rename a file and directory in C#?

I am working with files and directory in C#, so I would like to know how can I rename a file and directory in C#? I would like to rename file first and then in some cases would have to rename directory also.

I see there is File.Move Method, but is there any other method or way to rename a file and what about Directory, how to rename directory?

...
Type
Question
12242 1
Read excel file in C# (.XLSX or .XLS using OLEDB / EPPlus or Interop)
In this article, I am going to provide you code with explanation to read excel in C# using OLEDB OR using EPPlus OR using Interop in Console application.
Type
Article
561 0
Converting JSON to XML OR XML to JSON using C#
In this article, I have provided working sample to convert JSON to XML OR XML to JSON using C# with an working example.
Type
Article
192 1
How to convert seconds into hh:mm:ss in C#?

I am trying to work on Audio file and have seconds as int in C#, but I would like to convert seconds into hh:mm:ss ( hours, minutes and seconds) format, so How can I do it easily in C#?

For example: 20 Seconds = 00:00:20 in hour,minutes,seconds format.

...
Type
Question
403 0
Multiple ways to add newline into a String in C#
In this short article, I have provided multiple ways to add a line break into a string using C# with Console Application example.
Type
Article


313 1
GoogleWebAuthorizationBroker.AuthorizeAsync is not working on Server

GoogleWebAuthorizationBroker.AuthorizeAsync is not working on localhost but not working in server

...
Type
Question
220 2
How to get all files inside folder using C# easily?

I have been reading this article to read file in C#, but how can I read all files inside folders, so basically how to get all files from directory or folder using C# and then read them?

...
Type
Question
219 1
How can I convert values in euro currency?

How i can convert values in euro currency

For Example:- if There is 25000 then output will be €25.000

If There is 995 then €9,95

...
Type
Question
657 0
C# Regex Examples and Basics
In this article, we have provided examples of C# Regex (Regular Expression) with sample cases and testing them in C# Console application with explanation of what is Regular Expression in C#.
Type
Article
6443 0
Verify email address exists or not? (With email id validation in C#)
In this tutorial, I am going to provide you, code using C# to verify email address exists or not, you can use this c# validate email address code while registering user.
Type
Article

Page 1 of 16