473,378 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Reg: C-Program to get Output in a separate Row

Hi everyone

I have a problem while writing a C code. I need a code to get the output in table form. I have more data's and If I run the program I am getting output in one column i.e. all the required data are pouring in to one column, but I need it separately in separate row's can you tell me how can I get in a separate Row.

Thank you
Nov 11 '08 #1
9 2505
r035198x
13,262 8TB
You need to use a loop with \n for going to the next line.
Nov 11 '08 #2
qartar
12
I believe there is no 'easy' way to format data in a console. You will have to use spacing and newlines. Search for "format specifiers" for some neat tricks for formatting specific types in printf type functions.
Nov 11 '08 #3
but I have data of 11650 columns and I need that data to be splitted to 3 diff rows with three diff headings......
Nov 11 '08 #4
You need to use a loop with \n for going to the next line.
if I use \n it will go to the next line but not to the next row?????
Nov 11 '08 #5
r035198x
13,262 8TB
Why do you want to display all that data to the console? Wouldn't writing it to a file be more productive?
Nov 11 '08 #6
I have written it in FILE only but if I run the program I am getting all the data in one row including the headings. I think there will be something like "\n is for printing the data in the next line" for changing into different row....
Nov 11 '08 #7
r035198x
13,262 8TB
I have written it in FILE only but if I run the program I am getting all the data in one row including the headings. I think there will be something like "\n is for printing the data in the next line" for changing into different row....
Did you use the \n then? If you did and got the same results then post the code you used.
Nov 11 '08 #8
JosAH
11,448 Expert 8TB
Even 11650 columns per row make up for a very very large row ...

kind regards,

Jos
Nov 11 '08 #9
donbock
2,426 Expert 2GB
Are you inspecting your output file with a text editor, or are you importing your output file into Excel? If the latter, then you need to understand the rules Excel uses to import files and then format your output file accordingly.
Nov 11 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: lkrubner | last post by:
I apologize for my ignorance in advance. I suck at reg expressions. I wrote some template software that got quite big, yet most of the code is unneeded on any particular template, so I went with an...
0
by: Sebastian | last post by:
Hi all, Does anyone know if there's a way in .net to read a registry file? I mean a registry file (.reg file), not the local registry. I need to work with registry info from another machine and do...
11
by: Mark J. McGinty | last post by:
Greets, One site I've written allows the user to install an IE extension menu (not malware at all) by downloading/merging a short .REG file. Worked like a peach on Win2K Server, now that I...
5
by: Henok Girma | last post by:
Hello Gurus, I wanted to have a very simple, strict regular expression validator for a phone field. the only valid format is (XXX) XXX-XXXX where X is a digit I have the following but it always...
1
by: worzel | last post by:
Hi All, I am looking for a reg ex that will match email addresses withing <a href=mailto blah > links. Actually, I already crafted my own, but with a slight problem: <a...
1
by: dixie | last post by:
I have a .reg file that I need to run across a network. Currently, we run it for each logon on the network manually, which is not really working well as there are over a hundred users and they...
5
by: Marty McDonald | last post by:
I'm trying to manually edit the resistry so Asp.Net can write to the app log. If my web app is named "TestApp", wouldn't I just create a key called "TestApp" under...
7
by: DraguVaso | last post by:
Hi, Does anybody knows how to run a *.reg-file silently on a computer? I need this to do automatic updates of my application without user-interaction. So I don't want the user to be asked a...
1
by: black_13 | last post by:
are there any python modules for manipulation of .reg files producted by the win32 prog "reg". thanks. black_13
6
by: LeWalrus | last post by:
Hi, I've written a reg exp for capturing a group of numbers from text files in the following format: -1.4326 s < 0.6758 s < 1.4334 s Any of the numbers can be positive or negative and the units...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.