Hi everyone
I'm having trouble working out how to import a specified path into a bash script. Basically, I have numerous scripts, each of which writes their output to a certain directory via the command
set wdir = "/home/..."
However, in the future this directory may change, so rather than...
Hello,
I was wondering if anyone could tell me where the documentation exists for the output of Gaussian 09 runs. The .out file is plain text and human readable, but I can only decipher parts and units are not always clear. I would have thought the Gaussian website would have an explicit...
Develop an application that reads city, state, and population from a text file.
Example input census file:
Jamestown FL 50000
Domville CO 10000
Jennyboro FL 30000
Lillyville CO 5000
If the population of the city is greater than or equal to 50,000, write the city information to a text...
help: Abaqus--why not get the correct stress? with inp file.
hi, all,
the attachment is the calculation inp file for the stress of pipe.
but now i can not get the correct result.
pls help me to find the error. thanks in advance!
I'm trying to input a .txt file with a variable number of rows and 3 columns into an array. The first row is just a single number expressing the remaining number of rows. so we have something like this
3
3 5.12 3
5.3 3 5
4 3 4
All the individual numbers are separated by spaces. So far...
Hi everyone,
I am kind of new in fortran90 and I am struggling with writing this basic programme:
I have an input file with a fixed format . It looks like this:
c 23.345 45.342 34.345
c 12.345 56.235 67.234
c 45.567 44.345 78.345
c 56.567 78.563 97.342
where the first column...
Hi all
I am currently using subroutines, and placing them at the end of the main program. However, I was wondering if it is possible to save them to a separate file, which the main program then calls?
For example, in the program below I call the subroutine 'SUB', which is located at the end of...
Recently I discovered a file (dated Feb. 13, 2011, time 8:07 P.M. (EST)) that cannot be deleted and does not respond to any commands, such as move, rename, open, etc. I have "unlocker assistant", but it doesn't work here.
The date stamp corresponds to a time when I was surfing Physics...
I'm attempting to write some simulation VHDL code that will be able to write the output of my simulation as a single string of binary values in a .dat file.
So far I've used both the textio and std_logic_textio libraries to write the signals to a .txt file as text. Is there a library I can...
Develop an application that reads city, state and population entered from the user and writes this information to a file. The application should continuously prompt for this population information until terminated by the user.
Example file:
Jamestown FL 50000
Domville CO 10000
Jennyboro FL...
I frequently get the same runtime error when using g77. Here is the error message:
fmt: end of file
apparent state: unit 16 named vi1.src
last format: (F10.6)
lately reading sequential formatted external IO
abnormal program termination
I have added to my code the REWIND statement...
recently i lost all my data in my computer
can anyone help me to find a file on the net
file containing all the s-t v-t a-t graph relationship and also content about kinematics such as projectile motion on inclined plane ... also with problem exercises
thanks
I have problem don't use tab to separate cell for writing file to excel.
this algorithm write file to excel one cell only.i want write file separate cell on excel file.
please suggest me about algorithm write file in excel file.
Homework Statement
I have 1 class for reading parameter from file (example below) and 1 class for doing calculation
For every step, I'd like to read in parameter and do calculation in between.
For i = 0 to number of lines in parameter file
Read in parameter;
Calculation;
End...
Hello all,
I have another little computer problem to deal with. I have a folder full of files (over a thousand) with the basic form KJ(number)-j(another number).txt, and I want to change the style to (number)(another number).txt. Is there any simple way to do this as the only way I can think...
Does anybody know how i can make files in a do loop in mathematica?
For example i want a do loop as (here is not mathematica language)
do i=1,10
make file = text_i.txt (here i is the index of the do loop)
end do
The results of this process would be ten files as
text_1.txt
text_2.txt...
Hey guys,
I am wondering if anyone could help me with a simple problem.
I want to remove key parameters from the "type declaration/parameter" portion of my code and into an external input file for easy access. The problem is, many of my variables (such as arrays) can't be defined until...
Hi guys
I've done a Runge-Kutta script for the Lorenz Equations in python, I need to write data for (t,x,y,z) in a .dat file in order to reprint in a table. How can a do it?
Imported routines are:
import sys, pylab, numpy
from pylab import *
from mpl_toolkits.mplot3d import Axes3D...
Hi! I don't know if I am even wording this right but here goes. I have to write a programme to read two data files into C++, then ouput as one file in the same format.
The two files are files of 10 bit data. Each 10-bit recorded value is represented by a 16 bit word, of which the top 6...
I am trying to input a txt file into my fortran program. My txt file is a 9x2 table of integers, all I want is to display the values in the same format in my program. I tried using,
program name
implicit none
integer :: input(9,2), I, J
open (unit=20, file="values.txt")
DO I =...
how to see the output of a file operation?
eg void main()
{ int a;
cin>>a;
ofstream o("a.txt");
o<<a;
o.close();
}
does the text file "a" come into existence? can we open it?
Every time i try and copy or rename a file in Eclipse, I get the error
org.tigris.subversion.javahl.ClientException: RA layer request failed svn: Server sent unexpected return value (405 method not allowed) in response to MKACTIVITY request...
help!
Homework Statement
I'm trying to read parameters from a text file (format below) but actually my function didn't receive any parameters from read file function.
Number_of_points 80
Distance 10.0
Time_step 0.05
Velocity 5.0
Diff_coeff 50.0
Homework Equations
The Attempt at a...
Homework Statement
Dear physics forum,
I'm start learning C++ and I'm trying to program a space transform function for linearized convection-diffusion problem using Code:block
Everything was fine until I wrote calculated result into a file. When I run the program, some error message...
Hi all,
do i = 1, 79
open(2,file=afiln(i),status='old')
do k = 1,11
read(2,'(51a)')astr1
enddo
do j=12,2000
read(2,22,end=23,err=23)iyr,imn,id,ih,imt,flx
write(7,*)i,j
obstim =...
Homework Statement
Write a script which plays a Doppler shifted version of a WAV file.
The Attempt at a Solution
This is the code for a doppler shifted single frequency:
vs = 1100; % speed of sound in feet per second
v0 = s*22/15; % speed of the vehicle in feet per second
fs = 10000; %...
clc
for ii=1:1:3 % start looping
rand_id= rand(1,1) *3; % Randomly generte a number between 1 to 3.if (rand_id<1)
rand_id=1; % 0 is ommitted.
else rand_id=floor(rand_id);
end
% rand_id will be used to open a previously saved file randomly.
if (rand_id==1)...
Hi. You may only understand what I am going on about here if you play an instrument.
I have often noticed that there are songs that I really love and know inside out, which, in my mind, I can play almost perfectly in my head; most of the parts and certainly all of the melodies etc.
But...
Hey,
so i want to write a string to a .txt file and I tried by doing this:
save filename.txt writer
(where writer is the variable containing string)
...
But i get weird char. instead of the string.
Any ideas?
Hi,
I've got a program which recalls strings randomly from a file. The file contains the strings, with each one taking up 200 bytes and if it's not long enough, I have spaces inserted after to make up the length. So they are all end to end, and there are no line breaks.
The program works...
Hi,
Looking for a bit of cheeky help with matlab, I am stumped!
1) I have written a program that i want to cycle through different sets of data, ideally this is what i would like:
These are all xls files with columns of data
ydata = ...
xdata = ...
zdata = ...
for variable =...
I have a short code that calculates the running median for three columns of data in an input file and writes the running medians out to three columns of data in an output file. I use Numerical Recipe subroutines and functions to compute the running median. If I include a WRITE(*,*) directly...
C program help!
Hey guys I am having trouble completing this C program. Its suppose to ask the user to enter a file to read from, read the file, count how many times each word appears and print the results in a different file(also user input) arranged from high occurrence.
Heres what i...
Hey,
I'm modeling the criticality of a core for a university project using MCNP4C. I've run the core on the appropriate KCODE parameters, specifying the source using the KSRC card, and I was looking to cut down on the computing time using the SRCTP files.
My problem is that I can't find...
I finally got a decent color camera for my lab, and would like to share some images here. I can't find any forum guidelines for the images- specifically, what's the allowed filesize?
Hi,
I'm trying to write a simple program that reads the content of a textfile and removes all hyphen by replacing them with ' '
#include <stdio.h>
#include <stdlib.h>
int main(){
FILE *fp = fopen("Thetextfile.txt","r+") /* Open for reading and writing */
char ch;
while(ch =...
it prints fine for the first generation, but nothing else after that. i am thinking that my problem lies in the cellStatus function and its implementation within the printCell function. attached are the files that i am getting input from and the file that i am printing to.
#include...
Hey all,
I'm in the process of writing a Suggested Reorder Program for my father's small business..
His current computer program exports its item data in the form of .CSV files. I'm trying to read the file into FORTRAN to manipulate. However, I run into the following problem:
Even...
I am pretty ignorant of this language. I am working from a '...for dummies' book to teach myself and after the first few pages I have already stumbled upon a problem. I have attached a code, pretty simple one, which I'm trying to run but there are some errors and I don't know how to resolve...
I've tried to open several different .exe files, and keep getting the same error. I've gone to several Windows help/ troubleshooting sites to no avail. My OS is Windows XP SP3 and browser is Firefox Ver. 3.5.9. I'm not able to install any other browsers on my system to test if this is Firefox...
i am trying to locate the end of a text file and delete any extra white spaces following it, but i am having trouble trying to do this. is there an easy way to do this? right now i am reading the text in character by character and outputting the text to another outstream file. i can't seem to...
Hi,
I want to redirect output of mc6811 from terminal to a file.I have tried google search and did not find any solution for that.Can anyone help me?I appreciate your help.
Thanks
Rose
Hello,
In my computational science class I have the task of taking the following input file and manipulating it.
I have the following input file:
C1 0 0.00 0 000.0 0 000.0
O2 1 1.22 0 000.0 0 000.0
H3 1 1.09 2 120.0 0 000.0
C4 1 1.54 2 120.0 3 180.0
H5 4 1.09 1 110.0 2...
I have a small problem that I would like to solve. I have an idea, but it's kind of half-assed and I'm not sure if there's a better way.
The problem: I have a CFD solution that writes out a solution file everything 5 minutes or so. I currently am writing out 32 total solution files. So, when...
system?
I know that it isn't possible in Windows since Windows has the registry and background variables that aren't stored on the file system for some reason.
But what about Linux? Are its environment variables stored on the file system? Is there anything that isn't stored on the file...
Homework Statement µ
Q.4 An incompressible fluid of density ρ flows steadily through a two-dimensional infinite row of fixed vanes,
a few of which are shown below. The vane spacing is a. The velocities V1 and V2 and pressures p1 and p2
are all constant along their respective stations, (1) and...