|
An assembly is a dll or an exe.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
An assembly is the smallest unit of distribution of compiled code. It can consist of a (or more) dll, an exe. However there is much more to it. Assemblies are self describing, they contain an identity (version, culture, etc).
Read it more on here[^].
You should really start using Google for these questions!
|
|
|
|
|
Hi All,
See the below lines of code.
StreamReader objReader = new StreamReader("c:\\test.txt"); <br />
string sLine = "";<br />
ArrayList arrText = new ArrayList();<br />
while (sLine != null)<br />
{<br />
sLine = objReader.ReadLine();<br />
if (sLine != null)<br />
arrText.Add(sLine);<br />
}<br />
objReader.Close();<br />
foreach (string sOutput in arrText)<br />
MessageBox.Show(sOutput);
In the above sample, am reading a text file and populating the array list. In this case, the output shall be
each location of the array contain the entire line of string
But, i want to get each item (string) of the single line of file into a seperate location of the array. Can anyone help?
Is there any way to read a csv formatted file ?
|
|
|
|
|
Is this .NET 1.1 or 1.0 ? I assume so by the use of arraylist. If not, you can use File.ReadAllLines to do this in one line of code. Then you can foreach to show them if you want.
TechBrain wrote: But, i want to get each item (string) of the single line of file into a seperate location of the array.
Oh, I see what you want. The split method of the string class can turn a comma seperated string into a string array representing your individual items.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yes, there's at least one article on here about reading CSV files.
Otherwise Split the line on commas and store each resultant string array.
There are many ways to skin this cat.
|
|
|
|
|
hi.. i used expression blend to develop my project design.. so when i open the .xaml.cs to write the code.. i fail to connect to database..
before using blend.. i used to use the Visual studio's data binding wizards to connect to the database.. e.g. using databinding.. dataadapter in VS 'toolbox..
but when i use up the blend..i open the design .xaml.cs... to get to those dataadapter function in vs toolbox.. I FOUND NONE !!! why??
if like this how to create datbase?
|
|
|
|
|
eg. i created a textbox in blend.. then open .xaml.cs and then click on the design view .xaml ..
i add the database on the .xaml through add existing item.. added data source.. BUT I AM UNABLE TO BIND WITH THE TEXTBOX .. no wizards in the toolbox provide me that function ..
only i write in coding enables me to access to database? no wizards?
|
|
|
|
|
Hi all'
I have added a New item (class named class1.cs) with the same namespace.when I used the code below
"class1 s=new class1()"
the object can't be created
ERROR:error(class1.cs is inaccessible due to protection level)
reply me HURRY!.
Regards,
chanzeb chaudhary.
|
|
|
|
|
Please paste the class1 code...
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
using System;
using System.Collections.Generic;
using System.Text;
namespace Filing
{
partial class fetchSchema
{
fetchSchema()
{
}
}
}
Regards,
chanzeb chaudhary.
|
|
|
|
|
The class needs to be public I reckon.
public partial class fetchSchema
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Instead of partial class fetchSchema
public class fetchSchema
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
Hi All
How can I programming an button by click it the user will open a file written in .html stord on a computer
>>>>>>>>>>>>>>>>>>THANKS<<<<<<<<<<<<<<<<<
|
|
|
|
|
paste the code below in the click event of the code....
"System.Diagnostics.Process.Start("Full Path Of The File Along With Extension");"
|
|
|
|
|
You might want to err... remove some of that blank space there
My current favourite word is: PIE!
I have changed my name to my regular internet alias. But don't let the 'Genius' part fool you, you don't know what 'SK' stands for.
-The Undefeated
|
|
|
|
|
i have two dataadapter and i need to execute method update by transaction .
if hase one error reject all update?
123
|
|
|
|
|
If both DataAdapters use the same Connection they can use the same Transaction.
|
|
|
|
|
Hello experts...
I make a function and above that I write too many comment about it. like
//**********************************************
//Purpose :
//Input :
//Output :
//Created By :
//Creation date :
//**********************************************
private function ABC(.....)
{
...
..
...
}
When I enable the outlining then my code looks like...
+//********************************[...]
+private function ABC(.....)[...]
I want the function should close but the comment not how to achive this...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
You would need to activate the XML commenting by using the triple slash /// instead of the comment double slash //
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
|
|
|
|
|
It doesn't solved my problem. Still same problem is occurred. Any other suggetion...?
I'm using Ctrl+M, M
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
You would have to manually navigate to the comments and close their outlining.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
|
|
|
|
|
Any other solution. Because same as every programmer I have Copy/paste power with me. And I am working in .NET so ctr+M, M automatically pressed after some time
Actually It is in my habit.
Either I have to change my habit or you suggestion is help full.
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
|
Hi!
Did you look at the documentation about CAS and security attributes/permissions?
One of them could be relevant for you: StrongNameIdentityPermission[^]
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Ya I see it but dosen't seems to prevent the code for unauthorized use.
I want to protect my DLL's.
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|