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...
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 &...
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...
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...
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...
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...
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...
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...
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 }...
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...
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?
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...
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...
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...
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...
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..
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
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...
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.
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)...
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...
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...
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...
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...
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:
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...
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...
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.
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...
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
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!
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...
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...
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?
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 <<...
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...
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')...
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...
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...
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...