File Definition and 575 Threads
-
A
Fortran Retake: Reading an existing file into a fortran code
Thank you very much for the reply. I placed the file in the same directory as the program and opened the file before executing and everything was just perfect. But my other problem is that, in my data, there consists of negative numbers. Is there a way to read the positive inputs without the...- angelfaz
- Thread
- Code File Fortran Reading Retake
- Replies: 2
- Forum: Programming and Computer Science
-
A
Fortran Reading an existing file into a fortran code
I am programming in fortran 90/95 and i have a problem opening an existing file for input. I have written the code without any errors, but at compilation time, the file to be read cannot open. It is as if the program does not know the location for the file. I would like to know if there is a...- angelfaz
- Thread
- Code File Fortran Reading
- Replies: 1
- Forum: Programming and Computer Science
-
Y
Getting jpg file (picture) from video.
My wife accidentally have the camera in video mode, she tried to take pictures but took a few seconds of video instead. is there any way to get picture out of it at the right moment. I understand the resolution will be bad, but those are important pictures, bad pictures are better than no...- yungman
- Thread
- File Picture Video
- Replies: 2
- Forum: Computing and Technology
-
Q
MATLAB Help reading an Excel file with Matlab
Hi everyone, this is my first post on the physics forums. I am trying to use the readtable command in Matlab to make a table from an Excel file. Matlab is still new to me so I'm running into problems a lot. When I input T = readtable('myfile.txt'), I get an error that says "? Undefined function...- quantumspark
- Thread
- Excel File Matlab Reading
- Replies: 5
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
J
C/C++ Apple XCode, C++, import text file
I can't figure out why my text file isn't being found. I have it saved in the same location as my project. Anyone know how I can set where XCode checks for an fstream object? int main (int argc, char* const argv[]) { std::fstream file1("CollegeIsAWaste.txt", std::ios_base::in)...- Jamin2112
- Thread
- apple File Text
- Replies: 4
- Forum: Programming and Computer Science
-
Solve MCNP Input File for AP1000: Get Help Now
Hello Every body, I hope all is well. I have a problem with MCNP code for 1/8 AP1000, so please can anybody help me ? Regrads- zaidtaher
- Thread
- File Input Mcnp
- Replies: 15
- Forum: Nuclear Engineering
-
M
Fortran Comparing line in one file to multiple lines in another/FORTRAN
Hi y'all I am trying to compare two files, so make one line from one file be compared to alll the lines in the other file until it finds a match where the difference is less than 0.003. This what I had thought of, but I still think it is just comparing line by line, instead of one line to...- maria4376
- Thread
- File Line Lines Multiple
- Replies: 2
- Forum: Programming and Computer Science
-
M
Fortran Fortran runtime error: End of file
Dear all, I want to read file "d1.dat": 1.025000+7 5.794453+0 1.050000+7 5.770080+0 1.075000+7 5.750135+0 1.100000+7 5.734860+0 1.125000+7 5.724448+0 1.150000+7 5.719060+0 1.175000+7 5.718829+0 1.200000+7 5.723865+0 1.219440+7 5.730802+0 1.225000+7 5.732945+0 1.250000+7 5.743325+0...- marlh
- Thread
- Error File Fortran Runtime
- Replies: 2
- Forum: Programming and Computer Science
-
M
Fortran [Fortran] Problem reading formatted text file
Hi all, I have a problem I'm trying to solve. I have a code that has written a simple ascii text file like this: write(ilun_out, '(E23.15,A,E23.15,A,E23.15,A,E23.15)' x, ' ', y, ' ', z, ' ', rho So this provides a nice looking ascii file with four columns, separated by a small space. Now...- Morridini
- Thread
- File Fortran Reading Text
- Replies: 1
- Forum: Programming and Computer Science
-
M
Fortran Read File in Fortran & Rewritecross.dat
I'm trying to read the next data text file :cross.dat 1.000000-5 0.000000+0 2.530000-2 0.000000+0 7.712958+1 0.000000+0 2.250000+3 0.000000+0 2.250000+3 1.838880+1 2.300000+3 1.936710+1 2.500000+3 1.986000+1 2.650000+3 1.843220+1 2.900000+3 1.832230+1 3.000000+3 1.816280+1...- marlh
- Thread
- File Fortran
- Replies: 2
- Forum: Programming and Computer Science
-
K
Fortran FORTRAN Problem Runtime Error: End of File
FORTRAN Problem! "Runtime Error: End of File" Hey everyone, back again with another Fortran question. I am getting the runtime error in Fortran "End of Line". I have tried to simply understand what this means, but I am not getting much help from Google. I have pasted my code below, and...- karenmarie3
- Thread
- Error File Fortran Runtime
- Replies: 2
- Forum: Programming and Computer Science
-
K
Fortran Can't get Fortran code to give me desired output file
Hey everyone, I have written a Fortran code for a project I am working on, but am having an issue: I can't get the code to output my data to the file I have opened. Here is what I am trying to do. I am setting up a Monte-Carlo code that selects a random x- and y-value. These values are...- karenmarie3
- Thread
- Code File Fortran Output
- Replies: 5
- Forum: Programming and Computer Science
-
R
Fortran To read a binary file using fortran
I am trying to read a binary file using fortran. this is how the binary file looks like. 1901 109.1000 241.4000 284.2000 121.9000 1902 104.0000 283.7000 202.6000 201.9000 1903 114.8000 293.0000 279.6000...- Rems
- Thread
- Binary File Fortran
- Replies: 4
- Forum: Programming and Computer Science
-
Y
MATLAB Open Fortran Program w/o MATLAB (Dipole.for)
I need to open a Fortran program came along with the textbook on antenna. I can't attach the file. It is a .for ( dipole.for) program. The book said it need MATLAB which I don't have. Is there any free software to open this? Thanks- yungman
- Thread
- File
- Replies: 6
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
E
MATLAB Can't run my main Matlab file related to ODE solution
Hey, guys Can you please help me to spot mistakes in numerical solution of following diffusivty equation: ∂P/∂t= 0.001127*k/(μ*ϕ*c_t )*((∂P/∂x)^2*c+(∂^2 P)/(∂x^2 )). Matlab give the following command: Undefined function or variable 'r'. Error in function_handle2 (line 9) for...- Ein Krieger
- Thread
- File Matlab Ode
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
A
Open MSI File on Mac - Download Now
I am using a MAC and have a download with a .msi file extension. Since I do not use Microsoft for my operating system, I can't open the file. Is there a download for this that I can get to open these files?- angelo78251
- Thread
- Extension File
- Replies: 2
- Forum: Computing and Technology
-
E
Read .CAM Files & Take Measurements | Elliptical Hole Verification
Are there any program that be be used to read a .CAM file and pull measurements from the program. Where I work we cut some elliptical holes that must have their size verified before cut. It would be benefical to have a reader program that let's you view the plot (not just the code) and take...- Engineer_Phil
- Thread
- File
- Replies: 2
- Forum: General Engineering
-
J
HTML/CSS HTML5 and Javascript file handling
I am quite new to the JavaScript and HTML5 world, and I am having trouble with some code that I was hacking together (based on demo's from other people). I am trying to take a file as input (a binary image) and base64 encode it. I think I have the right function for the base64 encoding, I...- jjc
- Thread
- File Javascript
- Replies: 8
- Forum: Programming and Computer Science
-
X
Fortran Why is My Fortran Program Only Showing Output Data After Completion?
Hi all, I encounted a write file problem for Fortran 90. I appreciate it a lot if you can help me. I open a file at the beginning of the program. Then everytime I rewind the unit number and write one new line to the first line of the file (the previous data on the first line is replaced)...- xxh418
- Thread
- Delay File Fortran
- Replies: 3
- Forum: Programming and Computer Science
-
O
Fortran Fortran, File Read Error( Tried to read past )
Fortran, File Read Error[Resolved itself, fixed] Basically I'm writing a simple fortran program to read in a data file formatted as shown below and then calculate the line of best fit for the given data points. N x1 y2 x2 y2 . . . . . . xn yn Where N is the...- Ordain
- Thread
- Error File Fortran
- Replies: 4
- Forum: Programming and Computer Science
-
D
Fortran Reading Universal File Type 58b in Fortran
Hi there, I am trying to read a universal file (*.unv) in fortran. The file is type 58b (mixed ascii and binary format). I can read the ascii part fine but am having trouble reading the binary part. Does anyone know of anywhere I can access some source code to read this correctly. I suspect...- DaveGil12
- Thread
- File Fortran Reading Type Universal
- Replies: 2
- Forum: Programming and Computer Science
-
H
C/C++ [C++] error: File cannot be found
So I just started teaching myself C++ using visual studio 2010. I started with a nice easy program. First thing I did was created a new project called "Tutorial." Under source files I right clicked and selected add -> new item, I named it Introduction.cpp. I created this: #include...- happysauce
- Thread
- Error File
- Replies: 3
- Forum: Programming and Computer Science
-
E
Encryption and/ as file compression
Im not exactly sure how encryption works, but, I think, it basically just scrables the alphabet, if you will. So somthing like "dusk" would become "ftjo" if red withot the decryption key. (of course, it is more complicated and in binary, but still..) Right? So.. if so, and if encryption keyy...- Edi
- Thread
- Compression Encryption File
- Replies: 9
- Forum: Programming and Computer Science
-
J
Fortran FORTRAN in linuxread file problems
I wrote a simple FORTRAN program to show my read problem. This works fine in windows. On the Linux machine I always get this eof error when I open a file and read. This means that every program I have written doesn't work :) The error is line 12 EOF. What is the problem? (I am using GFORTRAN in...- jelanier
- Thread
- File Fortran
- Replies: 13
- Forum: Programming and Computer Science
-
D
Can You File a Tax Return for a Previous Year with an Old W-2?
I have a W-2 from 2007 which I never filed for an income tax refund... is it still possible to file this?- dipole
- Thread
- File Income Years
- Replies: 10
- Forum: General Discussion
-
Mathematica How Can I Edit Inputs in a Mathematica .nb File for Different Calculations?
Hi there I was sent a .nb file with calculations already done for me, for various inputs. I was wondering how I can edit those inputs, keeping the rest of the calculations the same, to find out what the result would be? (see attached file for example)- StevieTNZ
- Thread
- File Mathematica
- Replies: 9
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
R
Fortran I can not read character 0A in a bmp file with Compaq Visual Fortran 6.6C
I can not read character "0A" in a bmp file with "Compaq Visual Fortran 6.6C" Hi, How to read character "0A" in a bmp file with "Compaq Visual Fortran 6.6C" Here's an excerpt from bmp file: 42 4D 16 02 00 00 00 00 00 00 36 00 00 00 28 00 00 00 10 00 00 00 0A 00 00 00 01 00 18 00 00 00...- roy437
- Thread
- File Fortran Visual
- Replies: 11
- Forum: Programming and Computer Science
-
K
[executable file from flash] convert
Hi all! I - Kumar! I am currently working on my project. And I have a question how can be done executable file from the flash?- KumarDel
- Thread
- Convert File Flash
- Replies: 4
- Forum: Programming and Computer Science
-
V
Fortran Interpolating & Integrating Data from File to 2D Array
I have this code that i have been working on that will interpolate and integrate some data. I need to read this data from a file with unknown rows and columns to a two dimensional array/matrix so that the data can be broken down further into one dimensional arrays from the parent 2D array's...- VoidSerpent
- Thread
- 2d Array Data File
- Replies: 10
- Forum: Programming and Computer Science
-
N
List file creation date in bash
How do you list creation date of a file in linux bash? I want to find creation date of some files, not just modification date. Thanks.- nvn
- Thread
- Creation File List
- Replies: 10
- Forum: Programming and Computer Science
-
A
Fortran Fortran: opening variable file names
I am trying to write code so a 2-d array is written to the hard drive (which is later to be read). There are several do loop iterations and I would like the file name to change with every iteration so I get as many files as there are loop iterations. I get one 1-d array that is named A, no...- autobot.d
- Thread
- File Fortran Variable
- Replies: 8
- Forum: Programming and Computer Science
-
C
MATLAB Creating a MATLAB Function File Without Mod/Rem
I need to create a MATLAB function file that will accept a modulo values (from 3 to 9; that is Z3 to Z9) and will output the least possible value describe by the modulo conditions I don't know how to start it because I am not allowed to use the mod() and rem(). Please give me an idea how to do...- cpgarcia164
- Thread
- File Function Matlab
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
B
Comp Sci How can I dynamically name files in C++ using a string and integer?
Hello, I'm wondering how to name/open a file whose name is given by a string with an integer appended at the end, i.e., something in the style of the following. Thank you! int i = 5; ofstream fout; string s = "Hello " + i; fout.open(s); // write something to the file...- burritoloco
- Thread
- Dynamic File
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
P
10 Calculus Questions Integrals,Equations, PDF file, Dead line after 1 hour
Uploaded a pdf file My Answers : 1: a- x= 1/10 (9-√41) ≈0.259688,Or x=1/10 (9+√41)≈1.54031 b:y=0 Or y=7/3 c: didn't solve. d: t= 1/3 log(5/2)≈0.30543 e::β=3/5 Or β=-3/5 2: didn't solve. 3:sin^-1(√5/4)≈0.59 tan (0.59)≈0.67 4: didn't solve 5:sin(α)+cos(α)=4/3 We...- Phys student
- Thread
- Calculus File Line Pdf
- Replies: 23
- Forum: Calculus and Beyond Homework Help
-
E
C/C++ Storing Data From C++ Program to a file.
I am using a verlet algorithm in c++ to model the motion of a satellite, and want to output position and velocity data from each timestep so that I can then read it into MATLAB and plot graphs to see how well my model matches the 'real life' graphs. so far I have at the end of each iteration...- engineer_ja
- Thread
- C++ Data File Program
- Replies: 3
- Forum: Programming and Computer Science
-
N
Modify input file name and print as output [C]
I have a question, how can I make an output file that takes the name of the input file and replaces the .txt extension with "_out.txt"? For example, an input file with the name “new.txt” would result in an output file named new_out.txt”. my friend told me to use strcat, but that just adds...- november1992
- Thread
- File Input Output
- Replies: 6
- Forum: Engineering and Comp Sci Homework Help
-
S
Fortran [Fortran90] how to write several output into one file
hi all, Currently I am doing 2d fdtd (TMz mode) modeling. I expect to have output for Ez, Hx and Hy in one file, which is mean that the output will be in 3 column. But I don't have any idea how format it. Anyone can help me? Below is the code !problem 3.9, Taflove chapter 3 !to model 2d...- s_hy
- Thread
- File Fortran90 Output
- Replies: 3
- Forum: Programming and Computer Science
-
P
NoSuchElementException when reading CSV file
Hello, Am writing java, using netbeans, For what should be a simple try.. catch with a while loop, I am getting the error. i have an excel file with the strings i want to display. the file is all fine, checked to make sure no empty cells etc etc. When i get to the second last element, the...- ProPatto16
- Thread
- Csv File Reading
- Replies: 19
- Forum: Engineering and Comp Sci Homework Help
-
K
C/C++ Debugging C++ Code to Read CSV File
I am trying to read from a csv file, the file looks like below: 1,2,3 4,5,6 7,8,9 0 I used getline(Input_file,size,',') but the problem with this is that it seems to see the numbers not separated by commas as one string., for the code below i was expecting the following output: 1...- khotsofalang
- Thread
- C++ Csv File Reading
- Replies: 2
- Forum: Programming and Computer Science
-
M
Ansys mechanical APDL input file creation
hello everybody. i have a quick question. i am going to make a shape memory alloy model in ansys workbench 12.0 . as workbench does not have the SMA model, i have to make material properties in mechanical APDL and then make an input file. but i don't know how to define properties and make the...- mech.reza
- Thread
- Ansys Ansys mechanical Apdl Creation File Input Mechanical
- Replies: 2
- Forum: Mechanical Engineering
-
F
Fortran [Fortran] problem on reading the csv file
hi. I have a csv file name Relative which has 24 different data set containing characters as well as numbers. It looks like Date,Hour,Min (RH),Max (RH),Avg (RH) 2012-08-28,0,85.190,87.200,86.325 2012-08-28,1,85.390,88.570,86.775 With reference to one of the thread reply in this forum...- fortranuser
- Thread
- Csv File Fortran Reading
- Replies: 6
- Forum: Programming and Computer Science
-
H
Fortran How to read Symbolic equations from a file in fortran ?
How to read Symbolic equations from a file in fortran ?? I am working on Linux platform. I have a very big equation about two pages. I want to put that equation in a file.txt and then i want my FORTRAN program to read the equation from file.txt instead of making any function or subroutine...- haroonjamia
- Thread
- File Fortran
- Replies: 20
- Forum: Programming and Computer Science
-
R
Group delay calculation through S-parameters extracted from a touchstone file
Hello everyone, I am working on the group delay of the front end filter of a GPS system. I am given the measurements of the S parameters of the filter in a touchstone file (s2p) in the following format. ! S-Parameter for B3521 in Touchstone format with Magnitude (lin) and Phase ! Normalised...- rizias
- Thread
- Calculation Delay File Group
- Replies: 1
- Forum: Electrical Engineering
-
N
C language: I cannot find the output file.
What is wrong with my code? #include <stdio.h>int main(int argc, char *argv[]) { int i=0; FILE *fp; char fname[100]; sprintf(fname,"%04X.txt",i); fp=fopen("fname", "w"); fprintf(fp, "hello world!\n"); fclose(fp); }- nenyan
- Thread
- C language File Language Output
- Replies: 4
- Forum: Programming and Computer Science
-
Mathematica How To create an .exe file from Mathematica ?
How To create an .exe file from Mathematica code ? Hi, I just wonder is there a way to create an exe file from a Mathematica code, that runs just with double-clicks on it ? When it starts running it may ask some values for some variables and when one of them entered the others and the...- parazit
- Thread
- File Mathematica
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MHB Anyone care to have a look at my first ever .tex file
its for a year 11 assignment that i have handed in and had graded and for which i got a pretty poor mark... i'm bitterly disappointed, though i think i can see my teacher's rationale for marking me down anyway, its a pretty simple thing: exploration of population in Australia over past 100...- DeusAbscondus
- Thread
- File
- Replies: 5
- Forum: General Math
-
J
Convert excel graph to wav file
Hello, I am attempting to take data from a PDV laser reflected off a vibrating surface and then convert that data into a sound file. The data from the laser is stored in an excel spread sheet but I do not know how to convert those data points into any form of sound file. I'm thinking a .wav...- Jgurrentz
- Thread
- Convert Excel File Graph
- Replies: 2
- Forum: Computing and Technology
-
T
How to Export Mesh File in Abaqus?
hi ! i have created finite element mesh in abaqus. i need to export this mesh i.e. the nodes and element details on a file. can anyone guide me in this respect- timewilltell
- Thread
- Abaqus File Mesh
- Replies: 1
- Forum: Mechanical Engineering
-
R
Mathematica Analyzing a text file in mathematica
hi, I have a big text file which includes lots of text and data (gaussian log file (it's a scan file)) and I need to extract some data from it. so I need mathematica to search along the textual data and find some strings and put the value in front of that string into a variable. can you...- raymound
- Thread
- File Mathematica Text
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
P
Skip reading N real numbers while reading data from a ascii file
Hi all, I'm upgrading a legacy f77 code to f90 standards. I'm trying to make some of the global arrays as dynamic arrays so that at a later stage it would be easier for me to parallelize whole application. Coming to my problem, I need to read some numbers from a text file so that I can...- prashanth.hsn
- Thread
- Data File Numbers Reading Real numbers
- Replies: 2
- Forum: Programming and Computer Science