Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Parameter Pin
Bert delaVega17-Apr-08 10:23
Bert delaVega17-Apr-08 10:23 
GeneralRe: C# Parameter Pin
Guffa17-Apr-08 17:34
Guffa17-Apr-08 17:34 
GeneralRe: C# Parameter Pin
Luc Pattyn17-Apr-08 11:12
sitebuilderLuc Pattyn17-Apr-08 11:12 
GeneralRe: C# Parameter Pin
parth.p17-Apr-08 13:43
parth.p17-Apr-08 13:43 
QuestionDatagrid Problem Pin
help as an alias17-Apr-08 4:53
help as an alias17-Apr-08 4:53 
GeneralRe: Datagrid Problem Pin
sarvesh.upadhyay17-Apr-08 4:57
professionalsarvesh.upadhyay17-Apr-08 4:57 
GeneralRe: Datagrid Problem Pin
help as an alias17-Apr-08 17:59
help as an alias17-Apr-08 17:59 
GeneralI dont solved this error! Pin
wwwxyz17-Apr-08 4:47
wwwxyz17-Apr-08 4:47 
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

class TextFile
{
public static void Main(string[] args)
{
string inFile;
string yazi;

Console.WriteLine("Dosya Ismini Giriniz");
Console.WriteLine("Örnek: d:\\filename.LOG");
inFile = Convert.ToString(Console.ReadLine());

StreamReader dosyaOku = File.OpenText(inFile);
yazi = dosyaOku.ReadLine();

string onEk = " Frequencies -- ";
int i = 1;
while (yazi != null)
{
if (yazi.StartsWith(onEk))
{
string gecici = yazi.Replace(onEk, "");
string[] parcalar = gecici.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
Console.WriteLine(string.Format("{0}\n{1}\n{2}", parcalar[0], parcalar[1], parcalar[2]));
i++;
}
yazi = dosyaOku.ReadLine();

}
Console.ReadLine();
dosyaOku.Close();
StreamWriter sw = new StreamWriter(@"C:\filename.LOG");
sw.WriteLine(string.Format("{0}\n{1}\n{2}", parcalar[0], parcalar[1], parcalar[2]));
sw.Flush();
sw.Close();
}


}
ERROR:(37,53): error CS0103: The name 'parcalar' does not exist in the current context

I want to write to text file after file is readed(modicificated) that is , I want to write output data but I cant be able toFrown | :(
GeneralRe: I dont solved this error! Pin
Pete O'Hanlon17-Apr-08 5:02
mvePete O'Hanlon17-Apr-08 5:02 
GeneralRe: I dont solved this error! Pin
wwwxyz17-Apr-08 6:23
wwwxyz17-Apr-08 6:23 
GeneralRe: I dont solved this error! Pin
Pete O'Hanlon17-Apr-08 10:01
mvePete O'Hanlon17-Apr-08 10:01 
GeneralRe: I dont solved this error! Pin
wwwxyz17-Apr-08 10:18
wwwxyz17-Apr-08 10:18 
GeneralRe: I dont solved this error! Pin
wwwxyz17-Apr-08 5:17
wwwxyz17-Apr-08 5:17 
GeneralRe: I dont solved this error! Pin
MidwestLimey17-Apr-08 16:14
professionalMidwestLimey17-Apr-08 16:14 
Generalfile.copy not copying .zip files Pin
markymark8217-Apr-08 3:20
markymark8217-Apr-08 3:20 
GeneralRe: file.copy not copying .zip files Pin
Reelix17-Apr-08 4:01
Reelix17-Apr-08 4:01 
GeneralRe: file.copy not copying .zip files Pin
led mike17-Apr-08 4:37
led mike17-Apr-08 4:37 
QuestionUncommiteed SQLTransaction causing the problem Pin
atuldeore17-Apr-08 3:03
atuldeore17-Apr-08 3:03 
GeneralRe: Uncommiteed SQLTransaction causing the problem Pin
Reelix17-Apr-08 3:58
Reelix17-Apr-08 3:58 
GeneralRe: Uncommiteed SQLTransaction causing the problem Pin
atuldeore17-Apr-08 4:56
atuldeore17-Apr-08 4:56 
GeneralRegistryKey.OpenRemoteBaseKey() problem Pin
heidihund17-Apr-08 3:02
heidihund17-Apr-08 3:02 
GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
Ed.Poore17-Apr-08 4:39
Ed.Poore17-Apr-08 4:39 
GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
heidihund17-Apr-08 21:50
heidihund17-Apr-08 21:50 
GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
Ed.Poore17-Apr-08 23:07
Ed.Poore17-Apr-08 23:07 
AnswerRe: RegistryKey.OpenRemoteBaseKey() problem Pin
heidihund20-Apr-08 21:07
heidihund20-Apr-08 21:07 

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.