blah blah blah is here! blah blah » Close

0
votes
1 answers

reading and writing text files (parsing logs)

hi all, i am a newbie in all the C# world. i have to create an application that will take a certain log and will do parsing to it. first of all it needs to read the lines that contains a certain string and write it to another log with just ...

0
votes
1 answers

Find newest file in large directory

Hello, I have a directory with 100.000 files. I just want to find the newest file in this directory the fastest way possible. All code that is reading all files first is to slow (so far) for this, is there any fast way to do this? (u ...

0
votes
1 answers

Using Binary files in a login system C SHARP

Making a program which is using .dat files and at the minute I have a registration form which saves the information in a .dat file what I want to do is use this information to be able to login with different users. if anyone can help it wou ...

0
votes
2 answers

delete all files except

hello, i have this code [code] DirectoryInfo di = new DirectoryInfo(Application.StartupPath + "\\lab"); // or whatever it's called FileInfo[] fia = di.GetFiles(); DirectoryInfo[] subDirs = di.GetDi ...

0
votes
1 answers

how to secure a file while sending it as an email in c#

salam guyz! i developed an application and i can generate a file to be send to an email account now i want to send it securly which nobody should can open it and read its content, i mean that my file's content should be secure as we ...

1
votes
1 answers

delete all files except

hello, i need code to delete all files in my folder application except tow files how can i do that? For example: my folder application "Debug" file 1 = Debug.exe file 2 = WindowsFormsApplication1.vshost.exe.manife ...

0
votes
0 answers

download .zip and .rar files

Hello, I'm using the code to download files with Progress Bar [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Wind ...

0
votes
1 answers

Reading text files

Hi, Can anyone help me? i have a text file that has this: Company name Date Address some data here how do i read only the company name when the 1st line is space delimited ...

0
votes
0 answers

Drag and drop files

I'm looking for a quick tutorial on how to handle dropping of files onto a list view control on a form from Windows Explorer. What I want is that when the user drops a file or some files onto the list view on the form, the list view adds ...

1
votes
1 answers

ResX Files Newbie

(redirected from csharpfriends.com) Hello! I'm going to be adding resource files to my project. I read up on Baml but saw that it wasn't "production ready", so I'd like to learn about ResX. My problem thus far has been fin ...

Feedback