Forum: C# Oct 27th, 2008 |
| Replies: 1 Views: 534 I want to populate the arraylist with the contents of the file. now it reads the first line and adds it to 0 and reads the next line and again writes it to 0, so basically it keeps overwriting... |
Forum: C# Oct 27th, 2008 |
| Replies: 2 Views: 1,175 I have a txt file that contains a list of files that i need to delete. so far this is what i have.
how do i add the delete statement. line.delete, sr.delete does not work.
[/code]
class Program... |
Forum: C# Sep 25th, 2008 |
| Replies: 1 Views: 1,442 right now it is only reading the first line of the file and puting it into i. how can i read the next line of the file?
StreamReader sr = new StreamReader("c:\\iplist.txt");
... |
Forum: C# Sep 24th, 2008 |
| Replies: 9 Views: 2,098 not asking you to write my code. just asking for help. i am stuck. this is what i get.
No overload for method 'Read' takes '1' arguments.
now how can i fix it. |
Forum: C# Sep 24th, 2008 |
| Replies: 9 Views: 2,098 i want to add the list in the txt file into the arraylist.
So basically i want it to read line by line and put the contents into the arraylist. |
Forum: C# Sep 24th, 2008 |
| Replies: 9 Views: 2,098 private ArrayList addToList()
{
ArrayList myList = new ArrayList();
StreamReader sr = new StreamReader(list);
for (int i = 0; i < myList.Capacity;... |
Forum: C# Sep 24th, 2008 |
| Replies: 9 Views: 2,098 a list in a txt file. i want to read that file into an array list.
the file contains to colums separated by a tab
how can i do this? |
Forum: C# Aug 22nd, 2008 |
| Replies: 3 Views: 2,112 |
Forum: C# Aug 22nd, 2008 |
| Replies: 3 Views: 2,112 I want to incorporate a file browser into my windows app so users can select which file to copy. I am running vs2008. |
Forum: C# Aug 11th, 2008 |
| Replies: 2 Views: 898 I have a txt file with three sections. i need to use section 1 for one function section 2 for a diffrent function and part 3 for the third function. how can i read the file from a specfied... |
Forum: C# Aug 6th, 2008 |
| Replies: 2 Views: 535 without using the windows task scheduler is there a way to automatically run a task at a certain time using c#? |
Forum: C# Aug 2nd, 2008 |
| Replies: 0 Views: 615 I am new to c#. i dont want install sharpziplib in the gac. is there another way to install it. |
Forum: C# Jul 30th, 2008 |
| Replies: 1 Views: 743 i need to zip some files and folders. is there a function already done for this or how can i go about doing this? |
Forum: C# Jul 28th, 2008 |
| Replies: 1 Views: 455 Is there a function that will remove the last 4 char of a string? trimend works but i have to specify which chars. what if i dont know what the chars will be. I still need to remove the last 4... |
Forum: C# Jul 28th, 2008 |
| Replies: 2 Views: 1,584 Is there a function that will remove the last 4 char of a string? trimend works but i have to specify which chars. what if i dont know what the chars will be. I still need to remove the last 4... |
Forum: C# Jul 26th, 2008 |
| Replies: 1 Views: 3,217 I need to copy files from one directory to another on a daily basis. I want to keep one weeks worth of files. How can i read the timestamp to determine which is the oldest file so i can delete it? |
Forum: C# Jul 16th, 2008 |
| Replies: 3 Views: 481 i have a txt file comma separated. i am trying to display its contents in a grid type on a separeate window not the default form. so basically i want to click on a button and have a popup display... |
Forum: C# Jul 16th, 2008 |
| Replies: 3 Views: 481 i am new to c#.
I want to write a windows app that will display a txt file in a new window. |
Forum: C# Jun 25th, 2008 |
| Replies: 2 Views: 4,263 |
Forum: C# Jun 25th, 2008 |
| Replies: 2 Views: 4,263 i am having problems appending txt to a file. it overwrites the file instead of appending
private StreamWriter outputfile = new StreamWriter("c:\\testfile.txt");
public void SetFile()
... |