Hello
I am trying to read data from one activity, save it to a file... and when open another activity I will be able to read that file(by opening it).
I searched for tutorials, all they are showing on the same activity. I figured out how the code works.. but I'm not able to understand what will...
ok i wrote my code but the whole file gets deleted instead of the required values.
else if(option==5)
{
int rno;
fstream w1;fstream e1;
e1.open("temp.dat",ios::in|ios::out|ios::binary)...
SOLVED
Hi there. I have the elements of a matrix written in a txt file (in row major order). I need to read this matrix to use it in my fortran77 program. The text file contains the elements written in this way:
A(1,1)
A(1,2)
...
A(1,N)
...
A(N,N-1)
A(N,N).
I was thinking in doing a do loop...
Hi everyone.
I'm trying to write a program that reads data from 2 files and then calculates the mean, standard deviation and standard error of both files (separate values for each). I'm struggling to get my head around simple I/O, so excuse the poor attempt, but this is what I have so far: (I'm...
Hello,
I'm young physicist and I have had a first contact with program in fortran. It is not my code but I have got an assignment to use that for my purpose. I can program in C. I watched few videos lessons for beginers about fortran and I hope I understand a structure and common commands...
Hello,
I have CT scanned an object at my local hospital, and I want to convert the object to an editable part in SolidWorks.
So far, I've used the program 3D Slicer to create a label map of the object and exported it to an .STL format.
However, it doesn't seem to be editable at all when I...
I'm testing a part of a code and I have a problem. After the subroutine call at line 44 (CALL ZEIGSUB), nothing is written in UNIT NRES. The other units are written correctly. Here's the code:
PROGRAM TEST
IMPLICIT NONE
complex *16, allocatable :: KSTAR(:,:), VR(:,:), CM2(:,:)
real *8...
Hello,
I am trying to compile my lateX document but errors appear:
! I can't write on file 'Rapport.pdf'.
Please type another file name for output
! Emergency stop
l.55 ... obj {<< /pgfprgb (/Pattern /DeviceRGB] >>
! Fatal error occurred, no output pdf file produced!
Transcript written on...
Hi,
Someone tried to scam me a while back and they were stupid-enough to leave a message in my Android answering machine. Question: Is there a way of turning a phone message into a .wav, .mp3 or other type of sound file? I guess it depends on whether the message is stored in my end or in the...
I have five data points (x,y,z), with two independent variables (x,y), and have written a function in a separate file z = f(x,y,A,B,C), with three undetermined constants (A,B,C).
How can I use a Matlab fitting program to try and determine the constants? I've written a fit function before where...
I have Ettus B210 and trying to add 1 line configuration file "/etc/security/limits.conf" which will allow UHD drive to set priority.
So , I typed this command to edit file: gksudo gedit /etc/security/limits.conf and add:
#@student hard nproc 20
#@faculty soft...
Is there any way to show sub or sup indices in a text file such as this Ab? Text files are very easy to use. They are fast, can be opened fast and created easily.
Thank you.
I'm trying to write Strings to files in Java.
Basically, I'm supposed to read from a file containing text (assumed to be strings). For each line of text,
if the String has the format word1 word2 (that is, if it's two words), I have to write it to one file (a list of names), whereas if it...
File integrity: State of a computer (electronic) file in which no alteration, addition, or deletion has been made, and which is exactly the way it was stored by its originator.
http://www.businessdictionary.com/definition/file-integrity.html
I would like to ask what "file integrity" is because...
I am not familiar with torrents and do not usually use them. But now, I have to. I try to download a file from kickasstorrents. When I click on "download torrent" a window appears, prompting me to choose an application. Would somebody please explain how I will proceed at this stage?
Thank you.
Homework Statement
so I have this text file that I'm reading line by line
and here is an example of a line:
root pts/1 01-19 13:41 (10.0.0.48)
Homework EquationsThe Attempt at a Solution
How can I extract the terminal and timeframe only?
I tried
echo $line | cut -d : -f2, 4
and...
Hi, guys I am very new to programming in fortran90 and I am just experimenting with stuff. I have been trying to get my output of my loop program to a text file. But for some reason it will not work. Could someone please advise.
Code displayed below:
PROGRAM loop
IMPLICIT NONE
integer ...
Homework Statement
Read a comma separated numeric (int, float, comp, bool) values from a file and store each
comma separated value in a list[/B]. Sort the list (without using in-built sort/sorted function)
and write it to output file in comma separated format.
In my attempt I am not able to do...
I'm told the system can not find the file and that the system path is not specified when I try to save a laytex document. I'm using TexWorks to create a new file.
Hi Group,
I am trying to get data from text file, I hope someone can suggest me how to do?
I also have this code which can read data, but i do not know how to scan every single line to get any information I want.
Please help, Thank you very much.
Here is my code:
#include <iostream>...
Hello
I am very new to programming and fortran. I have a text file formatted the following way:
Name Peter John Sally Joseph Luke Vader etc...
age XXXX XXXX XXXX XXXX XXXX XXXX XXXX
height XXXX XXXX XXXX XXXX XXXX XXXX XXXX
weigh...
I have a PDF file which has a weird dark yellowish background that renders it unreadable when printed in grayscale. I am not interested in the yellow background I just want black text from the PDF.
I want to do this for a quite a large number of PDFs so I want a process that is either...
Hi everyone I need help for reading file that contain float number, I don't understand the problem or what should I have to fix; the code seem to be fine if the read file is integer number but if the number is real number the FORTRAN give me error Runtime Error: debug_input.f(12): Invalid...
Hello PF! Last night I was working on something use Autodesk Sketchbook Pro. Since I use layers, I save WIPs using a .tif extension, as this is what Sketchbook supports. Short story shorter, the computer crashed. As of now, the file is still in the location where it was saved, yet it cannot be...
Hello,
I have a .lhe file for the u u > u u interaction and i want to extract the initial and final values of momenta but i don't know how. I could write a c++ program and insert them in arrays but how to exclude all the rest (MG5 Proc card, warnings etc) ?
sorry for any language mistakes
Hi PF!
I have a .txt file with spaces and letters, along with numbers. It looks something like this:
12.0 42.0 21.0 32.0
ICF-8-1
23.0 24.0 46.0 600.0
Additionally, the first two sets of numbers each represent a coordinate pair. Then the first coordinate is (12,42) and the second is...
Hello friends, how are you ?
Today's question is: How do i choose the data i want to extract from a file in c++ ?
I have this data file in columns format, something like:
x y z
1 2 3
4 5 6
7 8 9
I know there is the command file.getline() , and this...
I have a whole lot of .CNF , .TKA and .IEC files that their data needs to be taken but I am unsure how to read them or convert to excel. Any help or ideas welcome.
Hi guys,
I have several projects on my three computers which use bibliography. I maintain them manually, copying and pasting whatever is needed. Needless to say, this is becoming stupid now.
I recently started using Zotero. It seems like a nice idea, I use the zotero plugin to save whatever I...
I am creating a website and wish to include a new integral sign that has an infinity sign over it but aligned with the same tilt angle as the integral. I'm using Mathjax to render the math code. I can code this in Latex outside an HTML file and it works perfectly but does require the graphicx...
I was doing some work using Texmaker and my all of a sudden my keyboard stopped working and my mouse stopped working. But I know that I had just saved the file, so I restarted my computer. But now when I open up the .tex file to continue my work it is completely blank. It says that I have about...
This is my first time using ansys Fluent, and I am trying to follow this tutorial for modeling a heat exchanger under various conditions. I have been provided with a "Case 1 Mesh" file of the extension type .cas which is to be used in our simulation involving several or one heating element(s)...
Hi. I try to copy long file names and paths from one source to another but there is a problem. Windows cannot do the operation and gives this error. "File name(s) would be too long for the destination folder"
So how can troubleshoot this problem?
Thank you.
Hello, I have data in file and I want to read the data into variable in fortran to save memory caculation. I want to know: When I open file inputdata, whether fortran have any notices about the way it read data into variables? (like mathematica: each open file, we just read in the order anyway)
Hello everybody,
I have a source code which gives me as a result an array of 2 columns and 3001 rows (2d array). By using fortran90.
I was trying to have the values inside these cells into .dat file and tried to generate a subroutine and call my main array inside this. But somehow I get...
I found this before out on the interwebs, but alas can't find it today.
How can you print the location of the .ini file that MySQL is using from the MySQL command line??
Thanks,
-Dave
Homework Statement
Hi! I wasn't sure how to ask this, but my team and I are making a manila file folder bridge and we are stuck a specific part. We are looking to get the mass of the members and we decided to get it through multiplying the volume of the member by the density of manila file...
I know this is pretty basic question, but something doesn't seem to work right for me...
Suppose I have a txt file, with the following input:
x y
0.0 0.5
1.0 1.5
2.0 4.8
3.0 4.9
How can I pass those numbers into x and y arrays using a C++ code?
My code so far is like this...
Dear Group,
I would like to ask a question regarding to the batch file,
I am trying to create a batch file which could help to to shutdown to computer quickly, but when i run batch file, the command window showed up and keep running too many line but did not shut down the computer.
But when...
Homework Statement
We have been asked to make 4 .cell files for castep. 3 of them are fine, but the last one we were asked to convert our .cell files GaN (wurzite structure) to GaN (Zincblende) in an 8x8x8 (8x8x6) mp grid.
We were given a website to convert the convectional lattice parameters...
I have a MS Project 03 mpp with 6000+ tasks that has become corrupted. We can still open and work with the file in Proj03, but it will not open in Proj07, which has now become our standard version.
I have tried all of the standard fixes without success (compact by saving on open, export to...
I have a program "probe.f90" that reads in a text file. It runs. I am having trouble reading in the second text file (when prompted by user).
How could I turn this bit of code into a function? I was thinking about a function that strips the header from the fasta file. Then read into an...
Dear forum,
first of all thanks in advance for your collaboration and interest. I am an engineer interested in nuclear physics. I was looking for the program SPEDAC-Pro which is used for the conversion of the Genie 2000 file format into the Ortec's Maestro ones. Unfortunately the program is no...
I want to create a Matlab script called hw11.m, which reads in a text file of weather
information, parses it, and writes formatted summary information. The textfile is called
MonthlyHistory.html
I cannot figure out how to write a loop that averages the third set of numbers in the string.
an...