Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using ADWS in .Net Pin
Member 254690323-May-12 9:59
Member 254690323-May-12 9:59 
GeneralSystem.IO Project for beginners Pin
bdeklerk23-May-12 2:28
bdeklerk23-May-12 2:28 
GeneralRe: System.IO Project for beginners Pin
ddecoy23-May-12 3:31
ddecoy23-May-12 3:31 
AnswerRe: System.IO Project for beginners Pin
Eddy Vluggen23-May-12 10:42
professionalEddy Vluggen23-May-12 10:42 
QuestionCrystal reports not working on win 7 - 64bit. help Pin
Waqas Ahmad Abbasi22-May-12 19:38
Waqas Ahmad Abbasi22-May-12 19:38 
AnswerRe: Crystal reports not working on win 7 - 64bit. help Pin
Bernhard Hiller22-May-12 22:10
Bernhard Hiller22-May-12 22:10 
AnswerRe: Crystal reports not working on win 7 - 64bit. help Pin
Sandeep Mewara22-May-12 23:38
mveSandeep Mewara22-May-12 23:38 
QuestionProblem in merging two files -pcl file Pin
shamypnr22-May-12 19:15
shamypnr22-May-12 19:15 
I have two pcl files containing logos in each. I need to merge the file into a single pcl file. Iam able to merge the same but the problem is i get the two logos one after the other. I need the two logos to appear on the same line at top of the pcl file instead of one below the other. Iam using the code below to achieve what iam getting.
public void fileMerger(string inputFile, string outputFileName,string filetype )
{
{
#region get PCL file from inputFile
String ftype = "*." + filetype;
string[] tmpfiles = Directory.GetFiles(inputFile, ftype);
#endregion get PCL file from inputFile
FileStream output = new FileStream(outputFileName, FileMode.OpenOrCreate);
#region start Processing
foreach (string tempInput in tmpfiles)
{
FileStream inputfiles = new FileStream(tempInput, FileMode.Open);


if (inputFile.EndsWith(Environment.NewLine))
{
inputFile = inputFile.TrimEnd(Environment.NewLine.ToCharArray());
}
//Library.Utils.FlashMessage("inputfiles", "read");
CopyStream(output, inputfiles);
}
#endregion start Processing
}
}

C#
void CopyStream(Stream destination, Stream source)
      {
          int count;
          byte[] buffer = new byte[1000000];
          while ((count = source.Read(buffer, 0, buffer.Length)) > 0)
          {


              destination.Write(buffer, 0, count);

          }



      }


Please help..

modified 25-May-12 5:49am.

AnswerRe: Problem in merging two files - images Pin
Richard MacCutchan22-May-12 22:43
mveRichard MacCutchan22-May-12 22:43 
Questionsoftware copy protection Pin
Alex Nguyen1222-May-12 12:35
Alex Nguyen1222-May-12 12:35 
AnswerRe: software copy protection Pin
Dave Kreskowiak22-May-12 13:46
mveDave Kreskowiak22-May-12 13:46 
GeneralRe: software copy protection Pin
Bernhard Hiller22-May-12 22:18
Bernhard Hiller22-May-12 22:18 
AnswerRe: software copy protection Pin
Eddy Vluggen23-May-12 0:25
professionalEddy Vluggen23-May-12 0:25 
GeneralRe: software copy protection Pin
Bernhard Hiller23-May-12 4:02
Bernhard Hiller23-May-12 4:02 
AnswerRe: software copy protection Pin
Eddy Vluggen23-May-12 9:02
professionalEddy Vluggen23-May-12 9:02 
GeneralRe: software copy protection Pin
Dave Kreskowiak23-May-12 2:21
mveDave Kreskowiak23-May-12 2:21 
GeneralRe: software copy protection Pin
jschell23-May-12 10:21
jschell23-May-12 10:21 
AnswerRe: software copy protection Pin
Cracked-Down23-May-12 1:52
Cracked-Down23-May-12 1:52 
GeneralRe: software copy protection Pin
Kevin Marois23-May-12 7:24
professionalKevin Marois23-May-12 7:24 
GeneralRe: software copy protection Pin
Cracked-Down23-May-12 9:43
Cracked-Down23-May-12 9:43 
AnswerRe: software copy protection Pin
Kevin Marois23-May-12 7:26
professionalKevin Marois23-May-12 7:26 
AnswerRe: software copy protection Pin
Cracked-Down23-May-12 10:00
Cracked-Down23-May-12 10:00 
GeneralRe: software copy protection Pin
harold aptroot23-May-12 10:05
harold aptroot23-May-12 10:05 
AnswerRe: software copy protection Pin
MrJohnLucas2-Jul-12 16:53
MrJohnLucas2-Jul-12 16:53 
QuestionGenerating label Barcode from inside of our project Pin
Fred 3422-May-12 9:09
Fred 3422-May-12 9:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.