Questions tagged [output]

The externally observable consequences of calling a program on some input

The output of a program is the set of externally observable consequences of running a program on the given input.

A program's output can be manifested in several forms:

  1. What is printed to and/or
  2. What is written to an external file
  3. What changes are made to the inputs, which are then used in other functions or programs
9797 questions
4
votes
2 answers

View typescript output js files in VS 2012

I've installed TypeScript and Web Essential for Visual Studio 2012. In a new TypeScript Project were created 3 files: default.html app.css app.ts In all tutorials, VS 2012 automatically create dropdown for app.ts file in explorer, where is hidden…
4
votes
2 answers

How do I get the output from Database.ExecuteNonQuery?

I would like to use the Database.ExecuteNonQuery or something similar to execute a sql script and then capture the output. eg: xxx Table created My script: strArray = Regex.Split(streamReader.ReadToEnd(), "\r\nGO"); if…
AnilKumar
  • 121
  • 1
  • 3
  • 7
4
votes
3 answers

Suppress system() output

First off, I do mostly C#, .Net development so go easy on me if this is a stupid question. I am implementing an Ericcson open source project to convert an image to another format. The problem is that on conversion an output to a console happens as…
Sean P
  • 949
  • 4
  • 22
  • 41
4
votes
5 answers

C# how to output all the items in a class(struct)

i have class basically just a row of a table. this row contains many columns. for testing purpose, i will need to output the reads i get . so i need to output all of the columns in the row. the class is like public class tableRow { …
Benny Ae
  • 1,897
  • 7
  • 25
  • 37
4
votes
2 answers

Why is the output true for given statement in ruby?

I called the following statements on a range triples = "AAA".."ZZZ": triples.include? "ABC" # => true: slow in ruby 1.9 and fast in ruby 1.8 I understood why the output is true, but couldn't get why it's fast in ruby 1.8 and slow in ruby…
Kavish Dwivedi
  • 735
  • 6
  • 24
4
votes
0 answers

Tortoise Hg merge shows file in merge but THG COMMIT shows no changes

There are times when executing merges between branches that the tortoise hg commit window will show a file as part of the merge results and that it is about to be commited; however there are times when in the diff window it shows absolutely nothing…
Chris Marisic
  • 32,487
  • 24
  • 164
  • 258
4
votes
1 answer

Python strip() don't work for new lines

I try to remove the '\n' after i get the data from my test file and i stile see a new lines in the output. users_data = open('users.txt', 'r') line = users_data.readline() while line: line.strip('\n') metode, data = line.split(":") …
Or Halimi
  • 671
  • 3
  • 10
  • 19
4
votes
4 answers

Java: is there a way to run a system command and print the output during execution?

I have a python script and it takes a long time to finish. I would like to run it from Java, but also output the script's output while it is executing, so that I can tell if it is properly running. I've searched and only found examples where we…
Popcorn
  • 5,188
  • 12
  • 54
  • 87
4
votes
1 answer

Stata tables: Using esttab, indicate() with xtreg

Does anyone know if it is possible to use the magnificent "indicate()" option in esttab with xtreg? If I run a regression like eststo MYREG: reg y x i.category, then I can do esttab MYREG , indicate("Category FE = *.category") and I will get a…
Superpronker
  • 309
  • 4
  • 10
4
votes
2 answers

Catching Terminal Output in Python

I want to do something similar to the second answer here (but not quite similar): Simulate Ctrl-C keyboard interrupt in Python while working in Linux It's much simpler and I think I'm just missing something. Say, from a python script, I just want to…
joalT
  • 85
  • 1
  • 1
  • 7
4
votes
4 answers

print multiple lines by getchar and putchar

Im a beginner learning The C Programming language and using Microsoft visual C++ to write and test code. Below program in C from text(section 1.5.1) copy its input to its output through putchar() and getchar(): #include int main(void) { …
user2593692
  • 43
  • 1
  • 4
4
votes
1 answer

How to force SQLPLUS to output each row on new line

What is wrong here please? RETVAL=`sqlplus -s user/pass@DB <
Leandro Toshio Takeda
  • 1,599
  • 3
  • 16
  • 15
4
votes
4 answers

Need to remove the path from the output of a grep but not the file

I have a script that works great but in that script I am using grep to extract two lines grep -e "string1" -e "string" my_fliles* >> //destination The output of that looks good filename1 string1 filename1 string2 filename2 string1 filename2…
Steve Byrum
  • 57
  • 1
  • 4
4
votes
2 answers

Python: how to save a list with objects in a file?

im trying to create diferent objects (using Clases and objects) and saving them in a file to edit or retrive them later. However this how it looks. GlobalCategories=[] GlobalContent=[] def LoadData(x,y): import pickle with open('bin.dat') as…
Ale Rojas
  • 497
  • 2
  • 7
  • 17
4
votes
1 answer

How to get multiple outputs of a function in a vector?

Say I have a function whose outputs are two reals a and b [a,b]=function(c) I'd like to get all the outputs in a vector v. v=function(c) doesn't do what I want, v is 'a' only. Of course here I could do v=[a,b]. But the function in question is…
JuliaR
  • 99
  • 5