I'm trying to write an m-file in MATLAB that can count how many data point in a vector are zero, how many are 1, etc. I can call the vector and get the length, max and min values, but I also need to be able to call each element seperatly and I can't figure out how to do this. I've been playing...
So I made a program that finds files and searches in them for key terms using the scanner class in java.util.*;
I've written it something like this:
Scanner filereader = new Scanner(System.in);
String filename = filereader.nextLine();
Scanner searcher = new Scanner(new File(filename));
The...
I have the Dev C++(I am writing in C language) compiler and I need help on how to read in specific lines in a file and complete calculations on them. I need to read in a .txt file (I know how to do this, however I don't know how to read in the specific lines in a file) that has a column of...
Hello, I'm trying to copy and paste my code into Microsoft Visual C++. It's originally written in Borland. I rearranged my header files' format to fit Microsoft's format, but some headers aren't being read. Is there a list that has ever possible header file that exist for Microsoft Visual...
I have two computers connected to the internet through a linksys router. It's a wireless router, but both computers are physically connected to the router using ethernet cables. Both computers running Windows XP, one is a laptop, one is a desktop.
I want to be able to share files and printers...
I have this in my .cc file:
#ifndef __FASTJET_FASTJET_BASE_HH__
#define __FASTJET_FASTJET_BASE_HH__
// define this for easier readability (and obfuscation?) in
// a range of places
#define FASTJET_BEGIN_NAMESPACE namespace fastjet{
#define FASTJET_END_NAMESPACE}
#endif //...
I am a MATLAB newbie, and apparently I am having a terrible day because everything that I do in MATLAB has been resulting in an error and/or undesired behavior.
I am trying to write out a 'wav' file using a number of MATLAB created audio samples (simply by generating them using a sin...
Help!
I uninstalled Corel 5 in favour of 6 and now I need to edit a file that isn't compatible with 6.
Does anyone have Corel 5 or less that they could up-version a file for me?
Helo everyone,
i want to write a program that monitors the file operations occurring thoughout the windows.
i mean what files are being opened and modified so that i can implement some security system which monitors specific folders or whole drive.
but the problem is that i don't know how to...
Homework Statement
I have a retake in MATLAB and in my briefing they said i will have to generate a data file and analyse it.Can someone please tell me what a data file is and how you generate it.
I have used the help function in MATLAB but did not find it very useful .
Thanks in advance...
Is their a legitimate music p2p service that charges its customers a monthly fee for downloading unlimited songs instead of paying 99 cents for one song? Because I listen to a lot of music and 99 cents a song is just to expensive for a college student like me. I ask if there are legitimate p2p...
Voice Synthesis with a uC -- Audio File IP Available?
I'm working on a project that will involve voice synthesis and playing simple tones using a mid-range 8-bit microcontroller (uC). I've done my own proprietary tone synthesis many years ago (with an 8051), but for this present project, I'd...
I'm aware that there having already been threads on which is the best P2P file sharing program to download. But the threads I've search only ask one of my questions and most of the threads are only 2 years old , so things may have change. Whats the safest file sharing program to download?
Homework Statement
Hi, my question isn't actually over a particular homework problem, I've attached a file of my notes on electric field, electric dipoles, i don't quite understand why the equation of the electric field is setup that way for the negative charge.
Homework Equations...
Installing a CD-Image .iso file ??
I have downloaded the CD Image file ( .iso ) of the Kubuntu OS , Now I want to install it as my alternate OS to windows Xp , Can I do it without burning it to a CD??... some other way??...
Also , I have got DVD writer with me but no CD writer , so if I...
Hi. I'm in an elementary Java course and I wrote the following code to print the contents of a file I created earlier:
public static void load(String fileName) throws IOException
{
try
{
Scanner fileScan = new Scanner(new File(fileName));
while...
I need to write a method called save that takes a String as a parameter, and returns a boolean value. The parameter represents a filename, and the method should save the contents of one of my classes Flight.java to a file with that filename. I need to include all of the contents created in...
Im having a problem with a cpp program. It gives me 6 linker errors, which have something to do with buffer overflows. I used borland turbo cpp 3 to compile this. What should I do. Here's the code:
#include<fstream.h>
#include<conio.h>
#include<stdio.h>
ofstream write;
ifstream...
HTML -- posting from a form to a text file
Hey all!
I have an angelfire website and on one of my pages I have a "comments page". It simply asks for a user's name and any comments he/she may have. These two pieces of information are then submitted to a text file.
My problem is that a...
http://rawstory.com/news/2007/Kucinich_set_to_announce_Articles_of_0424.html
I can only hope that his motives are sincere and that this is not intended solely as a means to political gain.
I need to write a function that reads words from a text file and writes the words to an output tex file while removing all duplicate words.
void remove_dup(string filename)
{
vector <string> a;
string word;
ifstream infile(filename.c_str());
if(infile.fail())
exit(0)...
Hi. I am required to ask the user to open a file multiple times before exiting the program. How do I do this?
void ReadData(vector <student> & section, int& num_Students,string& filename)
{
ifstream in;
cout << "Please enter file name:" << endl;
cin >> filename...
"Size and Destiny of the Universe"---nice JPG file
I just re-connected with this modest plain-looking JPG file which is a plot of the universe's scale factor over time and thought I'd share it
this post in this other thread gives some context---links to the text of the article where this...
So say, I'm writing a program with an infinite loop, and that I'm trying to write a file that is as large as the disk drive is, in the smallest possible time.
What would be the best algorithm to do it?
Clearly, such an algorithm would consume as many system resources as it possibly could. So...
Does anyone know how I would go about displaying/generating webpage content with info from an array in a .java file?
Suppose you click on cars.com, once you do, the webpage will display the contents (say car names) of an array from a .java file. How do I do this?
Thanks.
Hi
Sorry for the ambiguous title.
I am looking to write a program that, upon dragging and dropping a text file onto it in Windows, it will do some pre-determined manipulation to the text, like deleting a certain amount in the beginning, replacing spaces with tabs, etc.
If you couldn't...
Word: won't autosave - "file in use"
(This is entirely unrelated to my earlier post about a Word problem).
I'm writing in a Word doc as I've been doing for several days now. Today when I opened it up, after ten minutes (my autosave is set for ten minutes), it give me the following errors...
http://www.democracynow.org/article.pl?sid=07/01/04/155257
http://www.law.com/jsp/article.jsp?id=1167818524831
http://www.npr.org/templates/story/story.php?storyId=6722187
So Nixon and Reagan used the FBI for political purposes. Is that legal?
I want to convert canberrra CNF spectrum file to ASCII file.
I found a program (IAEA, Winspedac) for converting, but program needed sad.dll file. :confused:
Please help me. :cry:
Thanks a lot.
Hi,
I have a text file with 3 columns (latitude, longitude, & station name) and 51 rows. Using fscanf I am able to read the first row of the file but not the whole file. Any ideas of how to read to the end of a text file that contains both numbers and letters?
This is what I have...
hey,
For this program I am writing in C, I am using stdio and the scanf function to detect input. Now, the person using the program commands in linux for the input to be given from a file, but the problem is I don't know how long the file is. So i have to keep scanf'ing until the file is...
Opening a fortran .exe file from Visual Basic
Dear friends,
I want to do something that is probably not too hard, I just can't figure it out. I want to call a executable (.exe) file that I have written in Fortran from my visual basic code. Let's say push a button and it automatically runs my...
I have a terrible avi file where the object is moving across the screen and I need to align this so that the object is still. Is there a program that can do this sort of thing?
I was thinking that I'd have to convert it to gif so that I can align it since this is the only way I know you can...
I'm writing a large amount of data to a binary file. Trouble is, I don't know how much until the program finishes executing.
Given this, I'd like to rewind back to the beginning of the binary file and write an element indicating how many records I wrote to the binary file - this way I can...
Hi, I am trying to display all the records stored in a file(Banac.dat) but the program keeps on returning the first record over and over again in an endless loop ( i think its endless). If anyone could help me, it would be appreciated.
For the sake of simplicity, I've only included the...
I have this file that has no extension (not just bcs it's hidden), so I don't know what to use to open it. Do you guys have any ideas on how to figure out what the file is?
I have tree files of IR spectra but I cann't open them, because I have no suitable software. I need to open them. does somebody knows some kind of freeware which I can use to open this files.
or if somebody can I will send this files to open and copy them into MS Word and send them back to me...
I got a voicemail on my phone this morning from a girl who was working on a video for a friend, and she accidently saved over her file with basically an empty version. She was wondering if there was anyway to get back the file she was working on. I was looking into programs like "Recover my...
I am trying to send a .java file as an attachment in my email. the problem is that when guy who received my email open his email, all he see s is the java code in plan text format. I want the person who received my email to open the attachment, and automatically invoke his java compiler, and my...
In earlier versions of Windows, all one had to do to change a file type is simply rename the extension. How, though, does one change a file's type in Windows XP?
For example, I have some downloaded video files that are listed as "htm" files. When opening them in Windows Media Player, I get a...
I have installed Python in a Windows environment and I want to load files to execute them in Python.
I have tried
"import testprogram.py"
and it does load the program and executes it (all the program does is to print something out on the screen) but then there are error messages...
HELP Me I need this file! Quick!
Hey I need some help... I am a student in high school and I don't have administrative access. So my prediciment is this: I have a file on the hard drive and XP Pro won't let me access it. It says you cannot access this file you do not have permission. I...
hey y'all
I need help putting passwords on documents, i.e. these documents CANNOT be opened unless the password is provided. This could also be for a folder.
Like I have documents in a folder, and I do not want anyone else to have access to this folder, I would therefore like to password...
My friend and I are developing a BitTorrent Client for our CS class, but we've run into a dilemma. If anyone can point us in the right direction we'll be thankful.
A little background info if you're unfamiliar with BT. The file that is to be downloaded from multiple peers is broken up into...
The Problem (from the handout, word for word):
Write a program that reads a list of integers from the file "numbers.in" into an array, which I will call numbers. Then sort the numbers into 3 groups, a group of odd numbers, a group of even numbers, and a group of negative numbers, use an array...
URGENT: ".GPM" file format - CAD/DXF?
Does anyone know what software a .GPM (Graphics Printing Format) file can be opened in? It seems to be related to CAD and .DXF formats.
If anyone has a piece of CAD software that they could use to open this I'd sure appreciate it. (I'll fwd the file to you...