File Definition and 601 Threads

  1. R

    Can I open xml files as text documents?

    Our teacher gave us a practice test on a cd and all the questions are xml files. How do I read the information on them?
  2. Z

    C/C++ How to Calculate the Average of Numbers from a File Using C++?

    How do I use file streams to extract numbers from a file, add them up, and average them out?
  3. F

    Fortran Fortran: how do you read from a memory-mapped file?

    Hello everyone! I have some binary data (list of integer and float values) stored in a memory-mapped file. I need to read this data. I know how to do this in Delphi and C, but Fortran completely stalled me. So far I managed to open my virtual file (OpenFileMapping) and create a mapview...
  4. Saladsamurai

    MATLAB How can I properly save and manipulate data in MATLAB using text files?

    How do I make this happen? E=load('elements.txt'); EE=2*E; save('poop.txt','EE') It loads elements.txt doubles the matrix stores the results in a new text file this does not work. It creates a new txt file but there is not much in it besides the "created on 'this date &...
  5. G

    Writing a Batch File for MS-DOS Serial Port Communication

    Hello Can anyone help me please, I want to write a batch file in MS-DOS to: Communicate with the serial port, send data to the serial port from a specified file and for a respond to come back from the driver that first command being done and now ready for next line of data to be send it...
  6. M

    How Can I Transfer an AVI Movie File to a DVD for Playback on a PlayStation 3?

    Hey everyone :) I have a movie file on my computer that is 120 minutes and 800MB. I want to transfer that onto a DVD CD so that I can play it on a DVD player at my friends house. The movie file is in AVI format. How do I put that file onto the DVD CD? Do I need a special programme or...
  7. D

    C/C++ C++: .cpp file won't recognize .h file

    I have a class that I've split over a header file (class declaration), and a .cpp file (member function definitions). Building the entire project results in various errors that say that the class has not been declared. I've put in the include directive for the header file. Both files are...
  8. N

    MATLAB How to Import a Matlab File into COMSOL?

    Hello, I have a file with points and I want to create a 3D geometry in Comsol, but it's impossible to load a txt file in this software. In Comsol we can import something called "geometry object" and I know it's possible to create this geometry with Matlab but I don't know how to do. Can...
  9. J

    C/C++ C++ How do I call a specific line from an input file?

    Alright, so my current class assignment is to create a program that will read several accounts, whether or not its a savings, the amount in the acocunt, then make calculations for interest and fines based on that info. The setup for the input file is like this: account checking/savings amount...
  10. D

    C/C++ File Processing via seekp and seekg C++

    Hello, I am working on a program about credit card that basically, generate 16 ramdom digits, a starting balance and write it to a file. The file works as an database and can be updated later. Here is my credit card class class CCard { // variables section private: //sixteen digits of a...
  11. N

    Nsert this equation in a pdf file

    Homework Statement Hi. I need to insert this equation in a pdf file such that it doesn't cut off. How can I make it appear without cutting off? Homework Equations \noindent\(\sqrt{\frac{1}{2} e^{\frac{1}{2} \text{$\kappa $u} (-4 u+4 \text{u0}+\text{$\kappa $u})} \sqrt{\pi }...
  12. L

    Video, Converting .3G2 File Extensions

    My wife and I have cell-phones that take really good video. Unfortunately, the videos are in the ".3G2" format, and when we try to download them to our computers, the computer can't play the video. It is my understanding that we could play them with Apple's QuicktimeTM, but I had that software...
  13. S

    Rainfall Data Output to .txt File

    I am trying to write data to a .txt file and want each set of data in a column, so I want 2 columns. However I am currently only getting the entire data set in one big column. I am trying to output the year and the rainfall for that year into a .txt file. Can anyone help me with this?
  14. N

    LaTeX Saving a LateX drawing as an eps file

    I have an annoying problem. I have a paper to submit to a physics journal which requires that the figures be in eps format. The problem is that I am generating the figure I need using LaTeX commands (using a certain package for drawing quantum algorithms). The figure comes out exactly as I want...
  15. A

    Fortran Can Fortran Incorporate Variables in Output File Names?

    Hi, I looked around in some forums, but couldn't find a good answer to this problem: my programmes produce several output files. When the programm is finished, I add certain simulation parameters to the file name, so that I see later, to which simulation run this file belongs. (for example...
  16. J

    Fortran Fortran - How to retrieve read near middle or end of large file quickly.

    Hi. I need to be retrieve information far into a file without reading everything before it. Is there a way to do this? Current code is below. Thanks, Jeff Tibbitt !ccccccccccccccccccccccccccccccccccccccc program getcoord integer i real*4 xx(1000), yy(1000), zz(1000) double precision...
  17. J

    How to Write a 2D Array to a File in Fortran for 3D Graph Creation?

    Hello, i have a problem and i was wondering whether anyone in here can give me a hand. I want to write a 2D array to a file in format that can be read from another program in order to make a 3D graph. I'm using fortran. In few words i want to place the data in columns and rows in the file...
  18. G

    C program to display the file given filename as input

    Hi, This is gokul, am basically from biology back ground. Now am learning C language myself. I want to do a program that prints file on the screen given file name as input using FILE. Can anyone help me..
  19. H

    Conversion of healpix fits file to normal fits file

    im working with idl and we are trying to convert a cmb map in healpix fits file format to a normal fits file format. any help!
  20. W

    Fortran Creating Multiple Output Files in Fortran

    Hi guys, I am tryin to get my program to output multiple files with the name of the file dependent on a number of integer variables in the program, any help with this would be greatfully appreciated. Cheers
  21. T

    How to Extract Atomic Numbers from a Text File into an Array in C?

    Hi, I need help taking the atomic numbers from a list of elements and putting them in an array. I have my data in a text file in the form: Ac 227 Actinium 89 Al 26.981539 Aluminium 13 Am 243 Americium 95 etc. This is what I am have so far: FILE *fp; char myStr[1000]; char...
  22. 3

    Which header file is CString in?

    Hello Just a quickie. could anyone tell me which header file i have to include to be able to use CString in VC++? I have looking on the net and I can't find one that works. One suggests to use AFX.h but I get more errors with that included than without it.
  23. J

    In C how would i write an array to a file

    In C how would i create, open and write an array to a text file The array is EeV[i], does it make a difference if I am using ubuntu or windows
  24. Shaun Culver

    Total file size for the complete MiKTeX system?

    What is the total file size for the complete MiKTeX system? The website (http://www.miktex.org/Setup.aspx ) doesn't seem to give this information.
  25. M

    Fortran Problems reading binary file in FORTRAN

    I am having problems reading a binary file in FORTRAN. I know that the file was generated by the code below: open(7,file='hctd1_kxx.dat',form='unformatted') ... write(7) iscl write(7) inode,npoints write(7) (kxm(i)*(10**(prop(i))),i=1,npoints) close(7)...
  26. J

    HTML/CSS HTML - counting the number of responses from a text file

    HTML -- counting the number of responses from a text file Hello, I have an angelfire website and on one of my pages I ask a simple question. What is your shirt size? There are four options: Small, Medium, Large and Extra Large. The answer is then submitted to a text file. My problem is...
  27. A

    Can any one help me me? need a c program to open a file using c

    can anyone help me me? need a c program to open a file using c pls can anyone send me a c programing code for opening a files
  28. I

    How to Parse and Output Employee Data from a File Based on Department

    Hi! Thanks for helping me. I need to write a program (in C++) that reads the file Employee.dat as input and then outputs to 4 different files which are Managers.dat, Marketing.dat, Developers.dat, and Testers.dat. Each of the output files contains the name of the employees of its category. The...
  29. O

    Deleting a file that can not read from the source file or disk

    Deleting a file that "can not read from the source file or disk" I downloaded a torrent file the other day and half way through the download i decided i didn't want to finish downloading so i deleted the file using a command prompt on bittorrent. Now the file (which is on my desktop) is deleted...
  30. A

    Learn How to View .he5 Files Easily | NASA NOAA Ozone Data Guide

    How to view .he5 file?? Not sure if this is the right place in the forum to ask this question. If it isn't, feel free to move it to the appropriate section. I am trying to obtain some data from the NASA NOAA website for a project I am working on, namely some ozone data from this page...
  31. N

    MATLAB MATLAB Write result to txt file

    Hey All, Quick question hope someone can help. Does anyone know how to write the result from a program in MATLAB to a text file ? I have googled this question to no avail. :confused:
  32. L

    A programme to change name of a file in linux

    Hello. I am writing a programme that changes the names of files in the linux directory. More specifically I have transferred a lot of files from windows directory which contains a lot of spaces and special characters that can get annoying in linux, so I am trying to write a programme to replace...
  33. D

    Fortran Interactive file naming for naming multiple files in fortran90

    I am looking for a way to create the files with names name according to value of variable in a loop. For example (not actual code): do i=1,11 open(10,file=name 'i'//".txt") ... ... enddo where 11 files with names: name1.txt, name2.txt...name11.txt will be created with the content. Do you...
  34. D

    3D CFD Tutorials & CATIA V5 to CFD File Imports

    hi. I need some 3D CFD tutorial. Can anyone introduce some links to me besides cfd-online? And may I know how to import file from CATIA V5 into cfd? where can I find that information? Thanks.
  35. S

    MATLAB Avoiding "Out of Memory" Error: Writing Values to Text File

    I have been writing a program to compute and change a value a great number of times and writes each value into a file I did this by continuously storing each value (which is a 7 element vector) into an array, and then writing that into a file using the cvswrite function The problem I am...
  36. G

    Change the date to my old genie2k .cnf file

    hi, I want to change the date to my old genie2k .cnf file. Any suggestion?
  37. F

    Is there a way to retrieve a lost file in MS Word 2003?

    Hi everyone, I have the following problem. I saved a file and when I was going to open it, it didn't have the changes I made to it, it was a completely different file. Does anyone know what might have happened and if there's a way to retrieve it? I use Microsoft Word 2003 Thank you, John
  38. W

    How could I script A code to synchronise A Specific File On My Pen Drive?

    I frequently Update file on my memory stick and (foolishly) forget to backup(!) could i script an auto run for when i plug my memory stick in it would sync. specific files. Please reply soon I need Help!
  39. moe darklight

    Best Free File Host for Large Files: No Download Limit

    anyone know a good free file host? one where you can up relatively large files and doesn't have a download limit.
  40. rohanprabhu

    What is the fastest way to check for file differences in a Makefile generator?

    I am making a Makefile generator and for that, I need something like: There is a list of files. When the generator is run, I need to know that which files out of those have changed since the last time the generator was run so as to not to include these files in the compiling list. I was...
  41. Math Jeans

    Java Solving Java File Not Found Error - "Sgrep.java

    Hello. I am having some trouble getting a java program to work. I am supposed to make a program that takes a word and a file name, and finds all lines in that file that contain that word. The word that I chose was "try", and the file was "Sgrep.java" Here is the main method: class main...
  42. T

    Create a .dst File for Free: No Digitizing Fee Needed

    I want to get my company logo put on some hats. All the embroidery shops need to digitize the logo to get a .dst file for their sewing machines. they want to charge $80 to digitize the logo. Is there a free way I can make a dst file myself?
  43. A

    C/C++ How can I extract and print every 5 digits from a txt file using C++ file i/o?

    i have a txt file full of numbers and i just want to take the first 5 digits, save it has one number, shift over 1 digit, take another 5 digits, save it, and so on until the end of the file here is the code fstream Prime; Prime.open("digitsofe.txt"); if (!Prime.is_open()) { cout <<...
  44. E

    Why not multiple inclusion of a header file if certain precautions are taken?

    Hi Ho! I often heard people say that we should avoid multiple inclusion of a header file. And, they very often show how to do it. But, I myself haven't yet found the reason of not to do it when certain precautions are taken. What I am going to discuss here is C programming, not C++. I...
  45. N

    Help Reading A .txt File Into A 2D Array In C

    Homework Statement The program is to read in a file full of numbers formatted like this: The first line contains a single int n. Following this line, there will be n lines with n ints each separated by whitespace. So I have asked the user for a file path and read in the first number ('n')...
  46. N

    How Can You Correctly Read and Format File Data in C?

    Homework Statement Ok, here is the other question that's giving me a headache. There is a file which holds 5 data items per line and a minimum of 1 line. The data is always in the order float float integer float string and each element is separated by a space. So we need to ask the user for...
  47. S

    Python How to Load a .py File in the Python Interactive Shell for Debugging?

    How can I load a .py file in the python interactive shell for debugging?
  48. C

    Get the contents of a file, character by character

    I am stuck on a program where I need to open a file, and print out the contents to a screen, but at the same time, I want to save each character in the file (spaces included) to an element of an array. However, I am having a problem opening the file and going through it character by character (I...
  49. K

    Write/Read Char Count to/from File

    Total program to write number of characters to a file and to read those back. Please help.
  50. N

    Program to Count Character Occurrences in a File

    hi! i was writing a program which asks the user to input the file name. the program then reads the file and prints out how many times each characeter has occurred in the file(uppercase and lowercase are different). Pls help me out. this is what i have got-i know this is not correct...
Back
Top