Tag: File
How to replace a File extension in C# ?
If you want to replace a file extension in C# , you can use the ChangeExtension method defined in the System.IO.Path class. Below is a sample code snippet demonstrating how to do it. How to replace a File extension in C# ?
How to refer to the file in Windows Phone app using ms-appx ?
When using the Speech recognition , you might refer to the Voice Command Definition file within your project . Assuming that the file name is AbundantcodeGrammar.xml . you might refer to the file with the ms-appx as shown below. new Uri(“ms-appx:///AbundantcodeGrammar.xml”,UriKind.RelativeOrAbsolute); When referring to the file at runtime , there are times when you might receive an error 0x80070002 error – The system cannot find…
How to Get the File Version of the Assembly in .NET (C#)?
The developers can use the methods and properties available in the FileVersionInfo class to retrieve the File Version of the Assembly in .NET (C#). How to Get the File Version of the Assembly in .NET (C#)? Below is a sample code snippet demonstrating how to retrieve it.
Can the PDF file be saved in the Media Library of Windows Phone?
This is one of the common question asked by few developers or Windows phone users. Can the PDF file be saved in the Media Library of Windows Phone? The Media Library of Windows Phone allows the users to save only the Images and hence there is no possibility to save PDF or files of any file format in it.
How to read file contents from command line in Windows 10 ?
You can use the command “type” in the command line to read the contents of the text file in Windows 10. How to read file contents from command line in Windows 10 ? Lets say , you want to print the contents of the file d:\ac.txt. Below is the command that you will be using. type d:\ac.txt D:\>type ac.txt Welcome to abundantcode.com D:\>
How to Create a Text File within the Application in Windows Phone 8.1 ?
Below is a sample code that lets you to create a text file within the application local folder in Windows Phone 8.1. How to Create a Text File within the Application in Windows Phone 8.1 ?
How to read data from text file in C#?
Below is a sample code snippet demonstrating in simple steps on how to read data from text file in a console application in C# and display it? How to read data from text file in C#?
How to Copy the entire contents of a directory in C# ?
Below is a sample code snippets that demonstrates how to copy the entire contents of a directory to another in C#. How to Copy the entire contents of a directory in C# ?
What is the Use of Capabilities in Windows Phone Application Manifest File ?
When working with the Windows Phone 8 development , you would have noticed the Windows Phone Application manifest file which includes an tab called “Capabilities” . What is the Use of Capabilities in Windows Phone Application Manifest File ? The Windows Phone Application Manifest File contains the metadata for your app. The capabilities in WP8 provides the users with information about the app and which…
What is the Default Session State in ASP.NET if it is not configured in Web.config?
What is the Default Session State in ASP.NET if it is not configured in Web.config file? By default, the session state will be InProc in ASP.NET if it is not configured in the Web.Config file.
How to Delete a File in C# ?
Below is a sample code snippet that demonstrates how to delete a file in C# . How to Delete a File in C# ?
IsolatedStorage File or Windows Storage APIs – Which one to Use for WP8 App?
The Windows Phone 8 SDK includes the Windows Storage API which can be used in the Windows Phone 8 app to store and retrieve data from the Storage. The Windows Phone 7 SDK already provided the IsolatedStorage APIs. Which one to use? IsolatedStorage File or Windows Storage API. The answer is simple. If you are targeting the Windows Phone 8 mainly, then the better option…