Click here to Skip to main content
16,006,001 members
Home / Discussions / C#
   

C#

 
GeneralRe: Zip and Unzip files or folders Pin
Christian Graus2-Aug-05 2:14
protectorChristian Graus2-Aug-05 2:14 
GeneralRe: Zip and Unzip files or folders Pin
S. Senthil Kumar2-Aug-05 2:55
S. Senthil Kumar2-Aug-05 2:55 
GeneralRe: Zip and Unzip files or folders Pin
Mohamad Al Husseiny2-Aug-05 3:16
Mohamad Al Husseiny2-Aug-05 3:16 
GeneralDynamic update of comboboxes in datagrid Pin
Atlemann2-Aug-05 1:28
Atlemann2-Aug-05 1:28 
GeneralAbout WebBrowser and save. Pin
Member 20124282-Aug-05 1:10
Member 20124282-Aug-05 1:10 
GeneralProblem Showing JPEJ from specific location in file Pin
arusmemon2-Aug-05 1:00
arusmemon2-Aug-05 1:00 
GeneralRe: Problem Showing JPEJ from specific location in file Pin
Christian Graus2-Aug-05 16:42
protectorChristian Graus2-Aug-05 16:42 
QuestionSubstring.. How?? Pin
oneyard1-Aug-05 23:52
oneyard1-Aug-05 23:52 
i have a very long text in one line... more than 1000 words...
my problem is...
i want to divide the whole line into a few lines...
a line can contain only 1033 character (including white space)...
and also... each line must have a header...
after dividing the line... then save it into a file...

my code doesnt work... Confused | :confused: Frown | :(
here is the method...

<br />
public void SaveCaptured(string savingFile,int count)<br />
		{<br />
			string fileName = countFileName.ToString() + ".rtf";<br />
<br />
			StreamWriter sx = File.CreateText(fileName);<br />
			DateTime myDate;<br />
			myDate = DateTime.Now;<br />
			string myTime = myDate.ToString("yyyyMMddHHmmff");<br />
			string lining;<br />
<br />
			int totalLine = count%1033;<br />
			MessageBox.Show("count%1033 = " + totalLine);<br />
<br />
			for(int i=1; i<=totalLine;i++)<br />
			{<br />
				<br />
				sx.Write("189000000000000000000023           000" + myTime + "000            01033                OBFT00xx x 30UG                                                                            ");<br />
				for(int j=0;j<1033;j++)<br />
				{		<br />
                                        lining = savingFile.Substring(j,1);	<br />
					sx.Write(lining);<br />
				}<br />
				sx.Write("\n");<br />
			}<br />
<br />
			sx.Flush();<br />
			sx.Close();<br />
<br />
			return;<br />
		}<br />


anybody can help me refining my code??

thanx in advance... Big Grin | :-D

Rose | [Rose] Rose | [Rose] Rose | [Rose] Rose | [Rose]

=^_^=
AnswerRe: Substring.. How?? Pin
Guffa2-Aug-05 0:16
Guffa2-Aug-05 0:16 
GeneralRe: Substring.. How?? Pin
oneyard2-Aug-05 16:27
oneyard2-Aug-05 16:27 
GeneralRe: Substring.. How?? Pin
oneyard2-Aug-05 16:41
oneyard2-Aug-05 16:41 
GeneralRe: Substring.. How?? Pin
Guffa3-Aug-05 9:53
Guffa3-Aug-05 9:53 
GeneralRe: Substring.. How?? Pin
oneyard3-Aug-05 18:15
oneyard3-Aug-05 18:15 
Questionhow to get user defined type through webservice Pin
papyrus_lei1-Aug-05 22:49
papyrus_lei1-Aug-05 22:49 
AnswerRe: how to get user defined type through webservice Pin
Christian Graus2-Aug-05 2:17
protectorChristian Graus2-Aug-05 2:17 
Questionhow can i Pin
snouto1-Aug-05 22:46
snouto1-Aug-05 22:46 
AnswerRe: how can i Pin
Guffa2-Aug-05 0:28
Guffa2-Aug-05 0:28 
Questionhow to display/ show() form in a tab page? Pin
nidhelp1-Aug-05 22:26
nidhelp1-Aug-05 22:26 
AnswerRe: how to display/ show() form in a tab page? Pin
Christian Graus2-Aug-05 2:16
protectorChristian Graus2-Aug-05 2:16 
GeneralRe: how to display/ show() form in a tab page? Pin
nidhelp2-Aug-05 16:14
nidhelp2-Aug-05 16:14 
GeneralRe: how to display/ show() form in a tab page? Pin
Christian Graus2-Aug-05 16:40
protectorChristian Graus2-Aug-05 16:40 
GeneralRe: how to display/ show() form in a tab page? Pin
nidhelp2-Aug-05 17:59
nidhelp2-Aug-05 17:59 
GeneralRe: how to display/ show() form in a tab page? Pin
Christian Graus2-Aug-05 18:06
protectorChristian Graus2-Aug-05 18:06 
GeneralRe: how to display/ show() form in a tab page? Pin
nidhelp2-Aug-05 18:26
nidhelp2-Aug-05 18:26 
GeneralRe: how to display/ show() form in a tab page? Pin
Christian Graus2-Aug-05 18:30
protectorChristian Graus2-Aug-05 18:30 

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.