473,499 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

reading a file and using the cmd prompt

3 New Member
I'm tring to read a file using Textpad in c langugage. When I go to run and put in cmd I get

C:\Documents and Settings\Owner>

then when I put in cd my documents i get

C:\Documents and Settings\Owner\My Documents>

then when i put in pig i get ..

C:\Documents and Settings\Owner\My Documents>pig
piglatin input-file

C:\Documents and Settings\Owner\My Documents>

then when i put in pig data.txt i get nothing it just sits there..

The program I tring to compile is a piglatin program.

I believe I'm in the right dirrectory c:, and my textpad pig program is saved in my documents, and my data.txt is saved also in my documents.

Any ideas???
Nov 20 '06 #1
1 2709
sivadhas2006
142 New Member
Hi,

pig is your c program to read the text file "C:\Documents and Settings\Owner\My Documents\data.txt" right?

Regards,
M.Sivadhas.
Nov 21 '06 #2

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

Similar topics

6
27623
by: slickn_sly | last post by:
How do you read a .txt file and have the compiler print out what's in the text file? *---------------------------------* Posted at: http://www.GroupSrv.com Check: http://www.HotCodecs.com...
2
1982
by: Thomas Philips | last post by:
In the course of playing around with file input and output, I came across some behavior that is not quite intuitive. I created a simple text file, test.txt, which contains only 3 lines, and which I...
1
1706
by: Etienne Labuschagne | last post by:
Thanks for the responses. I will look into using PySerial for talking to the modem as suggested by Peter. The code example I gave is probably not the best way to do it, but it seemed to work ok...
14
3530
by: Mark C. | last post by:
I'm trying to call a batch file that I've built using the FileSystemObject and CreateObject("Wscript.Shell"), oShell.Run... in an asp script. Naturally, I can get the script to work from a command...
6
21038
by: Omid | last post by:
Hi. I have problems when I try to redirect everything that is sent to cout to a file. I have one piece of code that works and one that does not work. The only difference is which headers I use....
3
7573
by: Max | last post by:
Yea this is probably a n00b question, but I haven't programmed C++ in at least 2 years and have never programmed for unix, sorry :) Anyway, I have a project in which a program is required to read...
2
1448
by: Richard L Rosenheim | last post by:
Is it possible to include addition tags in a XSLT file, that the XSLT processor will, for all practical purposes, ignore? What I'm looking to do is to include a section to contain information...
4
2461
by: Jamey Shuemaker | last post by:
A2k2 with user-level security and all preventive measures, vis a vis, Security FAQ enabled or enacted. I've got three DBs, which due to size constraints can't, or rather, probably shouldn't be...
7
11763
by: ianenis.tiryaki | last post by:
well i got this assignment which i dont even have a clue what i am supposed to do. it is about reading me data from the file and load them into a parallel array here is the question: Step (1) ...
3
4072
by: itmfl | last post by:
We are writing a program that multiplies two matrices of size n x m and m x n together. The matrices are stored in a file. The user provides the filename in the command line prompt. The file is...
0
7006
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5467
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4597
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
294
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.