File Definition and 601 Threads

  1. F

    How can I count the number of zero elements in a vector using MATLAB?

    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...
  2. T

    Java Fixing Syntax Issues with Java File Inputs

    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...
  3. E

    C/C++ How Can I Read Specific Lines from a File in C Language Using Dev C++ Compiler?

    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...
  4. S

    What header files do I need for my code to run in Microsoft Visual Studio?

    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...
  5. cepheid

    How Can I Share Files Between Two Computers on a Home Network?

    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...
  6. malawi_glenn

    C/C++ Troubleshooting Error in .cc File: Missing '/' or '\

    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 //...
  7. M

    MATLAB MATLAB: Using WavWrite to Create a Single Audio File

    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...
  8. DaveC426913

    Need Help Up-Versioning Corel File from 5 to 6

    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?
  9. A

    Making a sysytem file monitor, how ?

    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...
  10. B

    MATLAB What Is a Data File and How Do You Generate It in MATLAB?

    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...
  11. B

    Legal music file sharing program.

    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...
  12. berkeman

    Voice Synthesis with a uC - Audio File IP Available?

    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...
  13. B

    What is the safest file sharing program for downloading?

    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?
  14. T

    Electric Fields ( i attached a file)

    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...
  15. D

    Installing a CD-Image .iso file ?

    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...
  16. J

    Change the contents of a file into a string

    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...
  17. J

    Java Saving Flight Data to File: A Method for Storing Flight Information in Java

    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...
  18. R

    Java Java: writing pictures to a file

    hello, I need the code to write pictures to a file so I can read them sequentially.
  19. C

    C/C++ Fixing C++ File Program with 6 Linker Errors

    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...
  20. J

    HTML/CSS HTML - posting from a form to a text file

    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...
  21. Ivan Seeking

    News Kucinich to file articles of impeachment against Cheney

    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.
  22. N

    I need to write a function that reads words from a text file and

    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)...
  23. N

    C/C++ C++: Open File Multiple Times Before Exiting

    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...
  24. marcus

    Size and Destiny of the Universe -nice JPG file

    "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...
  25. A

    What's the fastest way to increase file size?

    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...
  26. K

    Java How do display/generate webpage content with info from an array in a .java file?

    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.
  27. J

    Simple Drag-Drop Text File Manipulator

    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...
  28. DaveC426913

    Word: won't autosave - file in use

    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...
  29. Gokul43201

    News Nixon, Reagan and the Rehnquist File

    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?
  30. H

    Canberra CNF Spectrum File Convert ?

    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.
  31. C

    MATLAB Reading Text File with Latitude, Longitude & Station Name

    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...
  32. R

    How can I detect the end of a file in C using stdio and scanf?

    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...
  33. J

    Opening an fotran .exe file from Visual Basic

    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...
  34. B

    Can I Align a Moving Object in an AVI File?

    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...
  35. P

    Need help reading and writing from binary file

    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...
  36. C

    C/C++ Solve Endless Loop C++ File Problem | Banac.dat

    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...
  37. S

    Identify File Type Without Extension

    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?
  38. G

    How can I open my IR spectra files without suitable software?

    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...
  39. N

    Omnigraph OGR File Download: Fast Forward the Dynamic Constant

    If anyone has omnigraph, download the ogr file from this site: Then fast forward the dynamic constant.
  40. T

    Lost Video File: Help Recover It!

    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...
  41. K

    Java Problem about .java file and email

    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...
  42. B

    How can I change a file's type in Windows XP?

    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...
  43. N

    Review Attached File: Notice of Changes

    please can you have alook at the attached file
  44. N

    Python Loading a file (module) in Python

    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...
  45. B

    How Can High School Students Bypass Windows XP File Permissions?

    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...
  46. L

    Need help protecting confidential documents with passwords?

    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...
  47. Y

    How can we efficiently manage memory and disk usage in a BitTorrent client?

    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...
  48. K

    How Can I Correctly Sort and Output Arrays from a Single File in C++?

    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...
  49. DaveC426913

    Understanding the .GPM File Format and its Use in CAD and DXF Formats

    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...
  50. L

    DOES ANYONE KNOW WERE TO FIND a list of dos bacth file commands

    :mad: i can't find any bacth file commands anyone know were to find some?
Back
Top