Currently browsing tag

file

How to transfer Large File using C# Socket

Now I will discuss about, how we can transfer a large file (file size in GB) using Microsoft dot net socket programming using C# (C sharp) language. This code has written in Visual Studio 2005 (dot net 2). Basic Knowledge To cover this article you need to read my few …

web-service

File Transfer using C# .Net Socket Programming 3/3

Continued code… Server Code: [C#] using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.IO; namespace beginSocketServer { //FILE TRANSFER USING C#.NET SOCKET PROGRAMMING – SERVER class Program { static void Main(string[] args) { try { Console.WriteLine(“That program can transfer small file. I’ve test up to 850kb file”); …

Shrink the Log file

Shrink the Log file   The article contains the stored procedure that shrink the Log file successfully and no need to any down time. It shrinks the log file on the fly. The Stored procedure is ready to use and it is my recommendation to juniors, please don’t make any …

C Tutorial File Handling in C

C++ Tutorial: File Handling in C++ Opening and Closing Files In C++, a file is opened by either of two ways. First way is the constructor function of the file stream class and second way is by making use of member function open() of the same class. After using the …

Binary Vs Text File in C

Binary Vs Text File in C From the programming angle there are three main areas where text and binary mode files are different. These are: Handling of newlines Representation of end of file Storage of numbers Let us explore these three differences: In text mode, a newline character is converted …

Writing into and reading from a binary file in C

Writing into and reading from a binary file in C In previous example, you learn how to write and read a text file in C. If the number of fields in the structure increase, writing structures using fprintf(), or reading them using fscanf(), becomes quite clumsy. The more efficient way …

Writing into and reading from a text file in C

Writing into and reading from a text file in C We use fprintf() and fscanf() functions to write into the file and read from file respectively. fprintf()  writes the data to the text file and fscanf() reads the data from from file. The following example illustrates the concept…. Writing into …

C Programming File Handling

C Programming: File Handling The console function like printf() and scanf() have been used for input/output .This scheme is adequate if the volume of data involved in not so large or it is not necessary to store the information for further use. However, many applications may require a large amount …

Send File from Server to Client using C# Socket Programming 6/6

Server codes are here…   Server code: using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.IO; namespace beginSocketServer { //FILE TRANSFER USING C#.NET SOCKET – SERVER class Program { static void Main(string[] args) { try { Console.WriteLine(“That program can transfer small file. I’ve test up to 850kb …