top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to write a single line of code to create a file and write the contents into it?

0 votes
308 views
How to write a single line of code to create a file and write the contents into it?
posted May 15, 2017 by Amit Sharma

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

Develop a C# windows form application that allows users to do all of the following:
Import a text from a text file (*.txt).The input file is selected from an open file dialog.
Successfully imported text is displayed on a text box.
Analyze a selected character.

For example the selected char is # :
is Digit :False
is letter :False
is letter or Digit :False
is lower :False
is upper :False
is punctuation :True
is symbol :False

then :
Calculate number of lines in the imported text.
Calculate number of words in the imported text.
Calculate number of letters in the imported text.
Calculate number of digits in the imported text.
Calculate number of uppers in the imported text.
Replace a selected word by anything else.

+4 votes

I have a scenario where my source file name will be coming from one db table I have to read that value and pass it in the value of Source File Name in Session properties.

Till now I have tried like I have created 2 sessions where the 1st session will read the db table where the source file name is stored and store it in one mapping variable and in post success variable assignment

I am assigning the mapping variable value to workflow variable and in the next main session I am trying to give the workflow variable in the session file name attribute .

But it is showing error like below

fail to expand variables in file field [$$WL_File].

How can I achieve this.

Please suggest some ideas.

...