File Definition and 575 Threads

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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)...
  6. zaidtaher

    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
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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
  15. 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...
  16. 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?
  17. 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...
  18. 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...
  19. 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)...
  20. 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...
  21. 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...
  22. 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...
  23. 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...
  24. 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...
  25. 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?
  26. StevieTNZ

    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)
  27. 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...
  28. 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?
  29. 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...
  30. 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.
  31. 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...
  32. 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...
  33. 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...
  34. 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...
  35. 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...
  36. 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...
  37. 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...
  38. 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...
  39. 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...
  40. 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...
  41. 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...
  42. 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...
  43. 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...
  44. 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); }
  45. parazit

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

    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...
  47. 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...
  48. 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
  49. 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...
  50. 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...
Back
Top