File Definition and 601 Threads

  1. J

    Python How can I retrieve integers from a file in Python?

    Hey. Im pretty new to Python (and programming in general in fact). I have received two different files, each containing 10 000 integers mixed up with some commas, colons, and \n, and in one of the files there are also negative numbers. I have tried all day retrieving those numbers using all...
  2. phinds

    Is file size on a 5TB drive standard for drives over 4TB?

    I used to know all about the FAT file structure and sectors and clusters and stuff but have forgotten it all. I was shocked to find that the new 5TB external HD I bought takes 1Meg to store a 1Kb file (and any file less than 1Meg). Is this standard on drives over 4TB ? Is there some other more...
  3. Y

    Problem opening an Adobe pdf file with my Adobe Reader

    Lately I have been receiving pdf files ( with Adobe sign) that I cannot open with my Adobe reader. I have no problem with all the Adobe pdf I have, just those from that sender. The error message is: When I click OK, I have this message: I tried all the options, got nowhere. Anyone know...
  4. S

    Meaning of "brand" in video file formats?

    The program ffmpeg can be run on a video file to print out information about the file format. An example of some output: What is the meaning of the brand information?
  5. A

    MHB What Problem Does This Equation Solve?

    the equation is in the attached file (7)
  6. A

    Comp Sci Using Malloc to Read a File Dynamically

    #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<time.h> int main(){ int index=1; int *arr; int data; char *c; FILE *fp; int input,inp; arr=(int*)malloc(sizeof(int)); fp=fopen("list2.txt","r")...
  7. devadmin

    Python Need linux/python help with writing to csv file in cron

    I'm writing a simple script that writes to a csv file. When ran from console it works fine. When ran with cron, it doesn't write. No errors in the log. All files and folders are 777. The cron is active and running. What am I missing?
  8. M

    MATLAB Pad File Names for Easy Organization and Access | Simple Code Solution

    Hi PF! I have a list of files data0.0.csv, data0.1.csv, data0.2.csv,...data0.10.csv... I would like to pad the central number with a zero for single digit cases, so that my files become data0.0.csv, data0.1.csv, data0.2.csv,...data0.10.csv... So far my code looks like this % DEFINE FILE...
  9. M

    Python How to Edit Specific Lines in Files Using Python?

    Hi PF! I'm trying to edit two lines from files in different directories, U and controlDict. I want to change the lines with numbers from two other .dat files, VEL.dat (vector of numbers) and VEL_t.dat (single scalar number). Below is my attempt, but I know at least two things that are wrong...
  10. M

    Python How to open a .py file in sublime from a terminal console?

    Hi PF! To open hello.py in the past I've used gedit hello.py but this opens the file in text editor. I would prefer to use sublime since it has features that are appealing to me. So my question is, how do I open hello.py in sublime from the terminal?
  11. garthenar

    Fixing Error: (vlog-7) Failed to Open Design Unit File

    Homework Statement:: None. This is part of implementing a project and not an actual question. It's a technical problem or equipment failure. Relevant Equations:: The Code I get is; Error: (vlog-7) Failed to open design unit file "Waveform.vwf.vt" in read mode. [Mentor Note -- moved to the...
  12. S

    Why is File Explorer not showing all my folders?

    We bought a Win 10 computer last year after Microsoft's planned obsolescence program finally caught up with us, ending support for Vista. I held out as long as I could, since we had a computer that worked fine for our purposes, and Win 10 horror stories abounded, but finally had to give in. I...
  13. M

    Paraview unable to read one stl file but IS able to read another: why?

    Hi PF! I made an .STL file and am trying to open it with Paraview. When I toggle "open" on the Paraview drop-down menu, I don't see the file (but it is there, since my terminal shows it). However, when I look for a different .stl file (one downloaded from an OpenFOAM tutorial) I can open it...
  14. K

    "Unexpected error in file" in MCNP

    Hello, I am getting the following error Unexpected error in file I have gone through the code and noting seems to be amiss. Does anyone have any ideas?
  15. robphy

    Did John Wheeler's Lost FBI File Reveal Secrets of the H-Bomb?

    "The FBI file of John Wheeler" https://physicstoday.scitation.org/do/10.1063/PT.6.4.20191203a/full/ "John Wheeler’s H-bomb blues" https://physicstoday.scitation.org/doi/10.1063/PT.3.4364 "How the Nation’s Hydrogen Bomb Secrets Disappeared"...
  16. W

    Python Same file name, Different Files (Different Content) Python 2.7 Jupyt

    So I have Python 2.7 ( Don't ask) installed in my VM. Now I have two files named " Untitled 10" in my Jupyter notebook therein ( Notice the bottom cell in both files , named "Untitled 10" -- please see top of attachments -- which have different content in the "bottom-most" cell ); please...
  17. A

    How Can I Modify My Fortran Code to Correctly Read an .xvg File?

    I need help in writing a Fortran code to read in the numeric data, but the file contains initially some character in few initial lines and later the numeric data has been written. please help me in writing the Fortran code. I will be thankful for the kind help...
  18. K

    MCNP6 is not printing an MCTAL file

    I am having an issue with MCNP6. When I run a simulation an output file is created, but not a mctal file. This behavior started after getting the following error forrtl: severe <157> : program exception -access violation I restarted and didn't get the error, but now not the mctal file and I...
  19. Z

    File Header Size Information Required for Document Files

    Hi, I want to change the header of some document files like pdf, ms word, libre office programatically. I know that I have to use some byte type command like putc(..) and getc(). But I don't the header size of the above mentioned file formats.I saw a list of file format at wikipedia...
  20. Wrichik Basu

    Java Problem in creating JAR file - "no main manifest attribute"

    I have three classes: Prog, CreateThread and BuildGUI. The last class has the main() method. I tested these classes using JDK 12 on NetBeans 11.0, and my program is working fine. But I am being unable to create an executable JAR file. As you might be knowing, Apache NetBeans 11.0 no longer...
  21. A

    Python To print two equal sized 2-D arrays adjacently in a single .txt file

    I have two 2-D equal sized arrays (m×n) say a,b and want to print them in a single .txt file and have tried this using numpy np.savetxt('data.txt',(a,b)) but it fails.., Can anyone please help in sort out this Thanks
  22. BiGyElLoWhAt

    How to store ping results into an array or variable using a batch file

    I don't know much about batch, but what I want is to execute a command such as ping google.com -n 200 and store all 200 ping latency results to a variable. The default results (avg max min %lost) isn't enough for me to tell if I can do what I need to do. I would like to calculate the average...
  23. JayZ0198

    Python Multipurpose software that keeps C, Python, DSP, .... in the same file

    I’ve been looking for a certain type of software that can host programming (preferably C or Python) and other process that I’m going to need such as DSP, DSP filters, diagrams (3D graphs, charts,…), and text editing within the same file. It’s mainly so that I can incorporate and use each one...
  24. Ygggdrasil

    How can I use AWK to batch rename files in Unix?

    I'd like to rename a bunch of files in a directory based on data from a tab-delimited text file. I know how to do this in R: dir <- "~/user/folder/" fileNames <- read.table(paste0(dir,"fileNames.txt"),sep="\t",header=T) for (i in c(1:nrow(fileNames))){ oriFile <-...
  25. W

    Engineering Identifying the purpose of a circuit from the VHDL definition file

    I have attempted to sketch the timing and got the following graph From reading the VHDL code my understanding is io each rising edge clock tick the system will carry out one of the following (choosing based on priority): reset if Clear_L is high load in a value if Clear_D is high UP count if...
  26. J

    Calculate the time taken to transmit the file over the wireless link

    Hello, I've got this question: A 16 MB file is compressed using a compression ratio of 4. The resulting compressed file is transmitted over a wireless connection that offers a maximum data rate of 1.2 Gbps. If a throughput of 60% can be achieved, and assuming there are no other transmissions...
  27. K

    I'm getting garbage values while reading matrices from a file

    Hi All, While trying to read a matrix from data file using fortran90 code ,I get garbage values and a backtrace error. Error termination. Backtrace: #0 0x7f4a4de3631a #1 0x7f4a4de36ec5 #2 0x7f4a4de3768d #3 0x7f4a4dfa4d42 #4 0x7f4a4dfa6ad5 #5 0x7f4a4dfa80f9 #6 0x56040bbeae57 #7...
  28. W

    Python De-Shebanging a Python program file

    Hi all, I had shebanged a Python program file to train myself to run Python from the command line or search box. Problem is now I cannot access my old text-based .py files. Every time I click on them to open, they run in the command line. How can I access the text format again?
  29. W

    HP15, Win10: Cannot Access Help Bar (See Attached File)

    Hi All, More Win10 fun. I cannot access any content in the Win10 help bar, on the lower left of the screen. I just get a blank. Please see attached. Any Ideas? Thanks.
  30. K

    Fortran Runtime error while reading file in fortran90

    I'm new to fortran coding and trying to read a file called "data.dat" with data like a triangular matrix 0.1 0.1 0.2 0.1 0.2 0.3 0.1 0.2 0.3 0.4 0.1 0.2 0.3 0.4 0.5 using the code PROGRAM matrix IMPLICIT NONE REAL, DIMENSION(5,5) :: a INTEGER :: row,col,max_rows,max_cols max_rows=5...
  31. M

    Dynamic Programming - Restoring white space between words in a file

    All the white space among words in a text file was lost. Write a C++ program which using dynamic programming to get all of the possible original text files (i.e. with white spaces between words) and rank them in order of likelihood with the best possible runtime. You have a text file of...
  32. J

    Comp Sci C++ Opening a txt file using argc and argv

    Homework Statement I have a complete code that calculates distances between point 1(x1,y1,z1) and other points(from 2nd up to more than 100) and the nth point that results in minimum distance and the minimum distance between point 1 and nth point. The code is below. The code is 100% correct...
  33. J

    Comp Sci C++ Reading Data File: Calculating Distances and Finding Closest Point

    Homework Statement I have successfully opened and discarded the headers. Then I calculated the distances between point 1 and others and the minimum distance as well. However, I am not sure how to make the code work for more than 4 points. The attached text file is what I am trying to read and...
  34. K

    Fortran How do I find an exact line from a large file in fortran90

    I'm new to prorgramming . I have been working with Fortran90 for my physics project and I have to read data from a file. I need to find a specific matrix and then print the said matrix onto a different file and diagonalize it. How do I read the matrix that follows a specific line from a file ...
  35. J

    Comp Sci C++ program to read an input file with multiple headers

    Homework Statement Write a program that can read an input file with a simple header. The Attempt at a Solution #include <iostream> #include <fstream> using namespace std; int main() { ifstream inFile; inFile.open("Data"); //Check for error if (inFile.fail()) { cout...
  36. S

    What's the history behind using file extensions to indicate the type of a file?

    What's the history of using extensions of file names (such as *.c, *.for, *.bmp etc) to indicate the general type of a file? My hazy memory of working on ancient mainframe computers is that a file name extensions were not mandatory for most software. For example, if you wanted to compile a...
  37. mesa

    Having a difficult time with binary IEEE .dat file

    I have been attempting to open up files on NASA’s GRS and neutron data, http://pds-geosciences.wustl.edu/missions/messenger/grs_edr.html but have been running into some roadblocks. The data is all stored in .dat IEEE binary format (which IEEE format they do not specify in their documentation...
  38. S

    Time it takes to transfer a file to a client

    Let's say I have a client that asks for a file from a remote server that then asks for the file from some other remote server (Let's say Azure Blob Storage, for example). Let's say that the file can be transferred from blob storage to the web server at 60mb/s and from the web server to the...
  39. Z

    Understanding MCNP Output File: Mean Alpha Energy and Particle Distribution

    Hi there, I would like some help understanding the attached MCNP output file. The file tells me that the mean alpha energy is 7.1931E-04 after a million simulations. I have two questions: Does the file tell me anywhere what the error in the mean value is (+/-)? Or can I simply work this out...
  40. Avatrin

    Java Which Resources Can Help Me Manipulate 3D Files Using Python or Javascript?

    Hi I am trying to learn how to manipulate 3D files like obj or stl using programming (I primarily use Python, but also know Javascript). Which resources can I use to learn this?
  41. M

    Samples of File Organization in DBMS: Relations in Files

    There is no sample file given in DBMS file organization chapter in my book. 1. Storing each relation in separate file 2. Storing many relation in one file. Can you please provide a sample of these files. How they look ?
  42. D

    Win10 change in method of adding file to 'path'?

    I am trying to add 'pip' in Python/Scripts to path in Win10 but the method available to do this seems to have changed recently. I used to just double click on 'path' in 'system variables' and paste path to pip (or whatever) at the end of a string of similar paths separated by a semicolon. But...
  43. C

    MHB Why Did the File Transfer for Numerus Numerans Numeratus Fail?

    There is an extensive amount of missing notation in both parts of Numerus Numerans Numeratus. I understand I am responsible for the correct transfer of word documents. I understand how to do so...and did at first...but then found the word limit and re-posted in two parts. However I failed to...
  44. D

    Python Extract all the text between the repeated unique strings in a large file

    How do I use Python to extract all text that comes between a recurring set of unique strings? Example: ABC;the red dragon;123, ABC;the blue dragons;123 ABC;the black dwarf;123, ABC;the gray elves;123 ABC;fantasy characters;123, ABC;winged balrogs;123 I want to parse through a large text file...
  45. M

    System restore failed to extract the file

    Hello. I created a restore point in Windows 8 but it doesn't work because of a problem. "System restore did not completed successfully. Your computer's system files and settings were not changed. Details: System Restore failed to extract the file "C:\Program Files...
  46. C

    Batch file that will open a media player at a specific time

    I have an acquaintance who's building houses for Purple Martins. He has audio he wants to play between 4AM and 8 AM local time that's supposed to be a dawn song for the birds. He's seeking a way to automatically play this audio on loop. I'm sure there are a million easier ways to do this, but my...
  47. H

    Mathematica FeynArts Model File: Coupling & Writing 4x4 Matrix

    Hi; Thank you so much in advance for any help. My question about FeynArts model file, I have coupling of my model and I did arrive to insert (write) constant 4*4matrix in generic model file in Feynarts or I should write it in model file. Thanks again
  48. shyvir3108

    Comp Sci Read specific lines from a file using fortran90

    Homework Statement I want to read only specific lines from a file using fortran code. Homework Equations Fortran code The Attempt at a Solution I have a dummy.txt file wrote 7 5 6 4 5 6 9 10 14 19 I want read only values between lines 5 to lines10. But when I use print statement, the value...
  49. ORF

    Question about input format file (for creating a net)

    Hello I am not sure about what should be the best format for a input text file. I think before start shooting in the dark, it's better to ask experienced people. The (C++) program has to create a net. The nodes will be defined in a input text file. For convenience, the net will be a bunch of...
Back
Top