File Definition and 575 Threads

  1. E

    Open watcom f77 - make file problems

    I loaded Watcom 1.9. I built a simple project and added a simple file with just a CALL EXIT and END. But it gives a bunch of make errors. Does anyone know what is going on? --- make files --- W:\1830\port\test>type test.mk project : W:\1830\port\test\test.exe .SYMBOLIC !include...
  2. ArcanaNoir

    Where Do I Install a .cls File in MikTex?

    Okay I am at my wit's end here. I need some personal guidance, reading internet information has gotten me nowhere. Sorry if this is the wrong sub forum first of all. *stay calm stay calm* I am trying to work on my undergraduate thesis as a latex document. I am using MikTex because that is...
  3. T

    Fortran Creating 2-d array from a text file in fortran

    I have a text file of the format x1 y1 x2 y2 . . . . . . I need to read this into an array. How is this done in Fortran?
  4. S

    Fortran FORTRAN- How to read a non-uniformly formatted text file

    Hi all ! I am a little new to FORTRAN and I am sorry if the title is confusing but I couldn't come up with anything better. I have a file of which I am showing a snippet below: *>>>>>>>>CHARMM22 All-Hydrogen Topology File for Proteins <<<<<<< *>>>>>>>>>>>>>>>>>>>> and Nucleic Acids...
  5. Z

    Reading from stdin Instead of a File

    Hi, So I can read from a file by doing: while read line; do ... done<$fileame Is it possible to change to reading from stdin instead of that file by changing the $filename variable instead of writing a new loop without a done< argument? Thanks.
  6. Q

    Importing data from text file into Matlab

    Homework Statement I would need some help with extracting two matrices from a text file into Matlab. First is the 60x3 matrix of node coordinates. Second is the 24x8 matrix of node numbers assigned to elements. I have 24 brick elements so each of the elements has 8 nodes. But there are some...
  7. P

    Converting real life dimensions of a canvas into video file dimensions.

    Hey people, 1. The problem statement, I'm doing a Uni Art assignment, and I'm going to be projecting a video onto a canvas (which I don't know the exact dimensions of yet). Video file dimensions are stated as 1080 x 980 and so forth, whereas the real life canvas will be something like 50...
  8. H

    Fortran Reading a file in FORTRAN 90 or 95

    Hi everybody, I need your help guys. I am using FORTRAN 90(or 95) and try to read a text file. The file contains many lines for instance something like this CS DIRECT 1.2 2.5 3.6 1.6 -2.3 2.9 .... .... .... I need to put each line inside a string variable for example A="CS"...
  9. D

    Opening a Binary File in Command

    How do you open a binary file in command in Pelles C so that it is readable?
  10. S

    Fortran Gfortran/f90 (MinGW) read file problem

    I'm trying to read a dat (txt) file. Win7. It has this 80 character line that I want to read: 6364.1543 .95003538 .953223371.97825229 .100000 6.203.200 00.6480MEANOK A The relevant parts of the program are: real :: dummy 500 format(f10.4) read(unit=astro_in, fmt=500)...
  11. L

    Fortran Write File in Fortran: Tips & Tricks

    Hi all I want to write data to file after each loop in fortran. Have you some experience ?
  12. L

    How to deal with a .dat file containing characters

    Hi everyone, I'm programming witn Fortran 90. Could anyone help me to read a .dat file who contains some columns of characters, it looks like the following: 2011/03/09 02:45:20.33 38.4350 142.8420 32.00 7.50 Mw 550 0.98 NEI 201103092006 2011/03/09 02:57:16.67 38.3610...
  13. Dembadon

    Comp Sci Troubleshooting File I/O in Dev-C++

    Homework Statement I am trying to write a quick program that will let me experiment with some different file I/O functions. I want to practice taking data from a file, loading it into a 2D array, then performing some analysis on the data obtained from the file. I have created a .txt file with...
  14. gluons

    How to store large rank-4 array to file?

    I am writing a code to calculate and to operations with a large set of matrix elements, indexed by four numbers. I am also writing these subroutines within a much larger code structure, so I do not have total freedom to modify the objects I am using. I am trying something like this, which...
  15. C

    Troubleshooting Infinite Loops in C File I/O

    I am supposed to read from 2 text files containing numbers in ascending order, then output the all the numbers in ascending order to an output file, For some reason my output file is reaching an infinite loop it orders the numbers correctly but the last number reapeats forever. I am thinking it...
  16. Whovian

    C/C++ File Input & Output in C++: Why Use a String Literal?

    I felt like learning a bit about file input and output in C++. Tried some code, couldn't get it to work unless I made the path to the file a string literal, not a variable type. Why is this, and is there any way to get a string data type to be inputted as a path?
  17. A

    Comp Sci Transfering data from a text file into a 2D vector array in c++

    Homework Statement I am attempting to transfer the data from a file into a 2D vector array. The data look like this: 1 2 3 4 5 6 7 8 9 However, the dimensions must be detected dynamically. Homework Equations The Attempt at a Solution There are two files in this code, but I attempted to...
  18. C

    MATLAB Creating and Loading .dat and .ext Data Files in MATLAB"

    we can call data file using 'load' command. I have created data file using notepad. which I can only save it with .ext extension, not dat. where to create .dat files? and how can I load .ext or .dat files? thanks
  19. gluons

    Fortran Fortran: Writes to screen, not to file

    I've never had this issue before. My code will create the file and also output anything to terminal. But if I change the output from terminal to file, it does nothing. For example, this line write(*,*) "ist1, ist2 =",ist1,ist2 outputs my two indices in every loop iteration. But...
  20. J

    MIPS programming file I/O problem

    Homework Statement Write a PC SPIM program that can (1) Prompt for a complete file name. [Note: Probably should be in the same directory as the program.] (2) Echo the input. (3) Test to see if a file by that name already exists. If it does, query the user to see if destruction of the old...
  21. M

    Comp Sci Where to save .dat file for C++ programming

    Homework Statement I'm starting my C++ project which requires me to call a file stream and output the data to four other output streams. Before I start, I want to know if I need to have a .dat file premade and saved somewhere so I can call it or do I just make that file in my code by using...
  22. V

    Fortran Read array from a file in Fortran

    Hi every one. I had try to make a simple program but it doesn't work because i am an amateur The program as following: PROGRAM: Sum_row_n_col ! ! PURPOSE: Read the 2-rank array from input disk file and calculate sums of all of the data in each row and each column in the array. ...
  23. M

    Python Parsing arguments to a python file

    Dear forum, I would like you to help me on .py scripts. I am using CMS_SW and I want to do something like this: cmsRun script.py file.root where "file.root" is the file that the .py script needs to run... But I cannot find, how I declare it to the .py code... these .py files, are configuration...
  24. C

    FILE I/O in IDE: Can it be Done?

    Can it be done? I do not really understand what the point of it is. I thought that using FILE I/O for example in C was only useful at the terminal where you can create files and read from them. What if I try FILE I/O programming in Pelles C IDE will it even create files in my directory??
  25. H

    How to Create an Effective VHDL Test Bench for a Register File?

    I am trying to implement a register file and a test bench in VHDL. I think I have the register file itself done ok so I just have to test it with the test bench now. I'm a little unsure as to how write the stimulus process however and was hoping that someone could point me the right way. This...
  26. D

    Huffman file Decompression algorithm

    I am going to be compleley honest, I don't know anything about Huffman coding. Except that I think I understand the Huffman tree algorithm. Can anyone assist me in getting started the problems states: The preceding exercise compresses a file to generate two files filename.huf and...
  27. H

    Unable to delete file through vb. Net

    Even if I use correct method or code for deleting files and folders, when debugging I get error saying that it cannot access file and hence cannot delete it. What setting of computer I should inprove to enable the delete feature through visual basic 2008
  28. A

    Python Need Help Turning One File into Thousands of Files (in Python)

    Homework Statement I'm not sure if this is quite where this belongs since it's not homework really, but I just need help programming and I figured this would be the place to ask. It's related to undergraduate research I'm doing so if that's not kosher just say so! I want to write a Python...
  29. A

    Making a file using Batch Files

    How do i create a .txt file using a batch file with something written on it. For example, i want to write this:- i>>n; i<<n; a b c... It has multiple lines and '>', so echo (text) >> test.txt doesn't work. Is there a better way?
  30. C

    Fortran Creating a Program to Copy & Generate Coordinates in .inp File

    The issue I am having is that I want to create a program which reads a .txt file and copies it exactly to a .inp file followed by some coordinates which I am generating. the . txt file is being used as a header file which can be changed outside the program but once the program is read in the new...
  31. S

    How Urgent Requests Impact Online Help Response?

    very urgent need by tomorrow.question file attached. very urgent need by tomorrow.question file attached.
  32. S

    Fortran How to put a output file in a network path with Fortran f90

    Hello Folks I have a program code in Fortran f90, that program generate an output file and put that into the same directory where the program resides, I need to put that output file in a network path ex: \\server_name\resource_shared I will appreciate if you could provide me the commands...
  33. J

    Fortran Fortran 77 - reading same file multiple times

    Hi all I am using some code that was originally written in F77, but as it is many thousands of lines long, I haven't the time to go changing it. There is one section of code that refuses to work, but I'm assuming it must have at some point since the code has been used in the past...
  34. S

    Editing Text Files - Easiest Way To Merge Every Other Line

    Hello! I have a file that looks like this: Where every line beginning with a T is a new data set. So basically I need each line in the file to look like this: I need to merge every other line so that each data set lies on the same line. There can just be a space in between the two...
  35. C

    How can I shouid write an input file for rutile tio2 in quantom

    How can I shouid write an input file for rutile tio2 in quantom espresso?What is atomic position in rutile tio2?
  36. N

    Open .py File on Windows Vista - Step-by-Step Guide

    Hello, I'm trying to open the "Exponential atmosphere" simulation found on this site. It's a .py file, so I downloaded python, more specifically 2.7 for windows (I have windows vista). I downloaded the .py file, but when I try to open, a command window opens for a second, but it...
  37. A

    Fortran Reading and Displaying text file in Fortran

    I am trying to read and display the content of a text file in Fotran 90 to make sure that fortran is interpreting the data correctly. Eventually I want to store the data in an array so I can calculate averages, but at the moment I am still working on getting the data displayed in Fortran. I've...
  38. rhody

    Commercial Software that edits PDF Adobe Acrobat File

    I have a need for software that will convert a .PDF Adobe Acrobat Version 8 file to text that can be imported into MS Word. I do not want a scanning imaging solution, for instance MS Word, Document Imaging. Too many scan errors can result, slowing things down, because of scanning errors that...
  39. T

    Fortran Fortran read from file problems

    I've been given a data file laid out as such: heading1 heading2 heading3 x1 y1 z1 x2 y2 z2 x3 y3 z3 .etc. where x=integer, y,z=real I need to count the number of lines to allocate x, y and z their sizes. My first attempt looked like: ... OPEN(21, FILE='data.dat', STATUS=OLD)...
  40. M

    Help with Work and Energy - File Attached

    Hi I need help in work and energy I Attached the File tank's :)
  41. P

    Can a File Object Alone Read a File?

    Can a File object alone be used to read a file? I am thinking it is no because don't you have to use the scanner class to get the data from the file? I have tried looking for this online but haven't been able to find the answer.
  42. T

    Print last entered date from .txt file

    Homework Statement How do I retreat the last entered data from .txt file ? #include <iostream> #include <fstream> #include <string> #include <cstdlib> using namespace std; void menu(int *); void option(fstream &, int *); int main() { int a, p; while(a== 1||2||3||4||5 )...
  43. M

    Python Save Output of Python Program to TXT File: Tips & Tricks

    This isn't exactly part of my homework but I wanted to know how I could save the output of this program to txt file? The program was my homework and it was to allow the user to enter the starting values for a multiplication tables columns and rows and print a 10x10table I did it like so...
  44. H

    Comp Sci Counting Words and Characters in a Text File: A Java Program

    Homework Statement Write a program that takes a file name as argument and counts the number of words and the number of characters (without spaces) in the document. Homework Equations The Attempt at a Solution How exactly should my program take a .txt file as an argument? Do I simply: String...
  45. N

    Comp Sci Weird File Output behavior in java

    Homework Statement I've implemented RSA and just need to print some stats and write to files.Homework Equations My solution works fine when I provide an input file, however, if I let it read from standard input there is no output written to either of my output files. Reading works regardless. I...
  46. M

    Python Problem reading file manipualting values therein, Python

    I was trying to write code that would read integers stored in a file, line by line and then save them to a list and average that list and display it, it didn't work. What can I do to correct this code, I believe that the error is in how I am treating the list but I am confused at why the...
  47. C

    Fortran Fortran: separate acids from a list of chemicals in a text file

    Dear Fellow Members, I am presently trying to write a Fortran 95 program to separate acids from a list of chemicals in a text file and then write them to a second text file. The program first matches the word "acid" and is then supposed to check if the word preceding the word...
  48. M

    FORTRAN 90 help- matrix-mul-add- input from user defined file name

    Hi everyone I am completely new to the Fortran. I have to make a program in fortran 90 to either add or multiply the matrix on user demand and ask user to enter the file name inorder to read the desired matrices. I came up with the the following code which does not read the program and...
  49. T

    Comp Sci Basic fortran help: reading columns of data from a text file

    Hi everybody, I have 3 columns of data (3 different variables) and 400 rows. How would I set up a matrix/array sort of thing to read each row individually and store it in my fortran program to calculate equations at each step? What I have basically tried and can't get to work, I think it...
  50. J

    How can I unzip a nc.bz2 file on Windows without paying for software?

    Hi, I have a nc.bz2 file and am trying to unzip it using Windows. I'm not paying for software as I'm sure there are ways to do it without doing this or installing Unix on my computer. Can anyone help?
Back
Top